Function at 0x403660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
push 0
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x120], 0
call fcn.00438180
mov dword [esi + 0x118], eax
push 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
call fcn.00438180
add esp, 8
mov dword [esi + 0x124], eax
lea ecx, [esi + 0x130]
push 0
push 0x46a424
push dword [ebp + 8]
call fcn.004035e0
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x14c]
mov dword [esi + 0x138], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
push 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
call fcn.0040b150
mov dword [esi + 0x14c], eax
xor ecx, ecx
mov dword [esi + 0x154], 0
lea eax, [esi + 0x168]
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 1
mov word [eax], cx
cmp dword [esi + 0x130], 0xffffffff
je 0x4039f5
mov eax, dword [esi + 0x138]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x13c]
push ecx
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
call ebx
test eax, eax
je 0x4037ae
call ebx
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x108
lea edi, [esi + 0x10]
push edi
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4037db
call ebx
mov eax, dword [ebp + 8]
jmp 0x4037e6
mov eax, dword [ebp + 8]
test eax, eax
je 0x4039f5
cmp eax, 0x108
jne 0x4039f5
mov ecx, 0x46a434
mov edx, 0xf
nop dword [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x4039f5
add edi, 4
add ecx, 4
sub edx, 4
jae 0x403800
mov ax, word [edi]
cmp ax, word [ecx]
jne 0x4039f5
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x4039f5
cmp dword [esi + 0x24], 2
jne 0x4039f5
cmp dword [esi + 0x38], 0x414d5a4c
jne 0x4039f5
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x11c]
jbe 0x40388c
mov dword [esi + 0x11c], eax
lea eax, [eax + eax*2]
shl eax, 4
push eax
push dword [esi + 0x118]
call fcn.0043818b
mov ecx, dword [esi + 0x11c]
add esp, 8
mov dword [esi + 0x118], eax
cmp dword [esi + 0x120], ecx
jbe 0x403884
mov dword [esi + 0x120], ecx
test eax, eax
je 0x4039f5
mov eax, dword [esi + 0x28]
push 0
mov dword [ebp + 8], 0
lea edi, [eax + eax*2]
lea eax, [ebp + 8]
shl edi, 4
push eax
push edi
push dword [esi + 0x118]
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4038bb
call ebx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4039f5
mov eax, dword [esi + 0x28]
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x128]
jbe 0x403914
mov dword [esi + 0x128], eax
shl eax, 3
push eax
push dword [esi + 0x124]
call fcn.0043818b
mov ecx, dword [esi + 0x128]
add esp, 8
mov dword [esi + 0x124], eax
cmp dword [esi + 0x12c], ecx
jbe 0x40390c
mov dword [esi + 0x12c], ecx
test eax, eax
je 0x4039f5
mov edi, dword [esi + 0x2c]
lea eax, [ebp + 8]
push 0
push eax
shl edi, 3
push edi
push dword [esi + 0x124]
mov dword [ebp + 8], 0
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403940
call ebx
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4039f5
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x12c], eax
xor eax, eax
add ecx, dword [esi + 0x138]
push 0
adc eax, dword [esi + 0x13c]
push 0
push eax
push ecx
lea ecx, [esi + 0x130]
call fcn.004091f0
push 0
push dword [esi + 0x34]
lea ecx, [esi + 4]
call fcn.00406d80
test al, al
je 0x4039f5
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [esi + 0x34]
push dword [esi + 4]
push dword [esi + 0x130]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4039ac
call ebx
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x34]
cmp eax, edx
jne 0x4039f5
push edx
lea ecx, [esi + 4]
call fcn.00409300
mov edi, dword [esi + 0x120]
xor edx, edx
test edi, edi
je 0x4039f2
mov ecx, dword [esi + 0x118]
mov ebx, dword [esi + 0xc]
cmp dword [ecx], ebx
jae 0x4039f5
mov eax, dword [ecx + 8]
add dword [esi + 0x140], eax
mov eax, dword [ecx + 0xc]
adc dword [esi + 0x144], eax
inc edx
add ecx, 0x30
cmp edx, edi
jb 0x4039d4
mov byte [esi], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc