Function at 0x408e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428adc
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x16c]
xor ebx, ebx
push 0xc7
lea eax, [esp + 0x95]
push ebx
push eax
mov byte [esp + 0x9c], bl
call fcn.00416150
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x94]
push str.Create_Inf_file_failed__d___
push ecx
call fcn.00416ae4
lea edx, [esp + 0x9c]
push edx
call fcn.00403d60
add esp, 0x10
xor eax, eax
jmp 0x409118
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x408f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileSize_failed__d___
lea eax, [esp + 0x98]
push eax
call fcn.00416ae4
lea ecx, [esp + 0x9c]
push ecx
call fcn.00403d60
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x409118
lea ebp, [eax + 1]
push ebp
call fcn.0040d16f
push ebp
mov edi, eax
push ebx
push edi
call fcn.00416150
add esp, 0x10
push ebx
lea edx, [esp + 0x18]
push edx
push ebp
push edi
push esi
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408f5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_failed__d___
jmp 0x408ef8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [esp + 0x40]
call fcn.00403830
push edi
mov dword [esp + 0x168], ebx
call fcn.0040d16a
add esp, 4
push 0x42ad4d
lea ecx, [esp + 0x78]
call fcn.00403830
mov eax, dword [esp + 0x40]
mov ebp, 0x10
cmp dword [esp + 0x54], ebp
mov byte [esp + 0x164], 1
jae 0x408fa8
lea eax, [esp + 0x40]
push eax
call fcn.004160db
add esp, 4
push 0xd
push ebx
push str.vid_12d1pid_
lea ecx, [esp + 0x48]
call fcn.00402150
cmp eax, 0xffffffff
je 0x4090d4
jmp 0x408fd0
push 0xd
push ebx
push str.vid_12d1pid_
lea ecx, [esp + 0x48]
call fcn.00402150
mov esi, eax
push 4
lea edx, [esi + 0xd]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x48]
call fcn.004038a0
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x164], 2
jae 0x40900d
lea eax, [esp + 0x5c]
push eax
call fcn.00402d70
add esp, 4
test eax, eax
jne 0x409045
mov edi, dword [0x461338]
cmp edi, dword [0x46133c]
jbe 0x40902d
call fcn.0041737e
lea ecx, [esp + 0x58]
push ecx
mov eax, 0x461334
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, eax
call fcn.00408d30
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
jae 0x409053
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409056
sub eax, edx
add eax, 0xffffffef
push eax
add esi, 0x11
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x48]
call fcn.004038a0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x170], 3
call fcn.00402e20
cmp dword [esp + 0x38], ebp
jb 0x40909f
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x70], ebp
mov byte [esp + 0x164], 1
jb 0x4090ba
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040d16a
add esp, 4
push 0xd
push ebx
push str.vid_12d1pid_
lea ecx, [esp + 0x48]
call fcn.00402150
cmp eax, 0xffffffff
jne 0x408fd0
cmp dword [esp + 0x8c], ebp
jb 0x4090ea
mov eax, dword [esp + 0x78]
push eax
call fcn.0040d16a
add esp, 4
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x409113
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040d16a
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0041613d
add esp, 0x154
ret