Function at 0x407eb0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x473308
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48d034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
xor esi, esi
cmp ebx, esi
je 0x407f73
mov edi, ebp
call fcn.004081d0
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407f73
push 0x34
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
call fcn.0045ca66
add esp, 4
mov byte [esp + 0x1c], 0
mov ecx, dword [esp + 0x1c]
push ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00408710
push 2
push esi
push 0xffffffffffffffe6
mov dword [esp + 0x54], esi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call edi
mov eax, dword [esp + 0x20]
push esi
lea edx, [esp + 0x58]
push edx
push 0x1a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407f7a
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00408190
xor al, al
jmp 0x408171
mov eax, 0x1a
cmp dword [esp + 0x54], eax
jne 0x407f62
add dword [ebp + 0x10], eax
mov ecx, dword [esp + 0x20]
push str.GMSerialFile
adc dword [ebp + 0x14], esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
sete al
test al, al
mov byte [ebp + 0xc], al
je 0x407f62
mov edx, dword [esp + 0x54]
push 1
push esi
neg edx
push edx
push ebx
call edi
push 1
push esi
push 0xfffffffffffffffc
push ebx
call edi
push esi
lea eax, [esp + 0x58]
push eax
push 4
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f62
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x407f62
add dword [ebp + 0x10], eax
push 1
push esi
adc dword [ebp + 0x14], esi
push 0xfffffffffffffffc
push ebx
call edi
cmp dword [esp + 0x50], esi
mov dword [esp + 0x1c], esi
je 0x408157
jmp 0x408008
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor esi, esi
push 1
push esi
push 0xfffffffffffffffc
push ebx
call edi
push esi
lea edx, [esp + 0x58]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f62
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x407f62
add dword [ebp + 0x10], eax
push 1
push esi
adc dword [ebp + 0x14], esi
push 0xfffffffffffffffc
push ebx
call edi
push 1
push esi
push 0xfffffffffffffffc
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call edi
push esi
lea ecx, [esp + 0x58]
push ecx
push 4
lea edx, [esp + 0x34]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f62
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x407f62
add dword [ebp + 0x10], eax
push 1
push esi
adc dword [ebp + 0x14], esi
push 0xfffffffffffffffc
push ebx
call edi
mov eax, dword [esp + 0x28]
cmp eax, esi
jbe 0x407f62
push eax
call fcn.0045ca66
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], eax
je 0x407f62
mov eax, dword [esp + 0x28]
push 1
push esi
neg eax
push eax
push ebx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f62
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x28]
jne 0x407f62
add dword [ebp + 0x10], eax
push 1
push esi
adc dword [ebp + 0x14], esi
neg eax
push eax
push ebx
call edi
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
mov esi, ebp
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebp
call fcn.00403330
lea esi, [esp + 0x30]
mov edi, eax
call fcn.00403810
test al, al
je 0x407f62
lea edx, [esp + 0x18]
mov eax, ebp
call fcn.004032b0
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
jne 0x408000
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00408190
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8