Function at 0x410b10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f928
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
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 0x410bd3
mov edi, ebp
call fcn.00410df0
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 0x410bd3
push 0x34
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
call fcn.00469ab0
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.00411330
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 0x410bda
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040e1f0
xor al, al
jmp 0x410dd1
mov eax, 0x1a
cmp dword [esp + 0x54], eax
jne 0x410bc2
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 0x410bc2
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 0x410bc2
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x410bc2
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 0x410db7
jmp 0x410c68
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 0x410bc2
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x410bc2
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 0x410bc2
mov eax, 4
cmp dword [esp + 0x54], eax
jne 0x410bc2
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 0x410bc2
push eax
call fcn.00469ab0
add esp, 4
cmp eax, esi
mov dword [esp + 0x2c], eax
je 0x410bc2
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 0x410bc2
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x28]
jne 0x410bc2
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.0040b1e0
lea esi, [esp + 0x30]
mov edi, eax
call fcn.0040b390
test al, al
je 0x410bc2
lea edx, [esp + 0x18]
mov eax, ebp
call fcn.0040b160
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 0x410c60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040e1f0
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