Function at 0x409580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aedd3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x30], esi
je 0x4095dc
mov eax, dword [ebx + 0x28]
cmp ecx, dword [eax + 8]
jae 0x4095dc
imul esi, ecx, 0x3a
add esi, dword [ebx + 8]
add esi, dword [eax + 0xc]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov edi, dword [esi + 0xd]
cmp edi, 0xc
ja 0x409642
mov edi, 0xc
mov eax, edi
push edi
mov dword [ebp - 0x2c], eax
call fcn.0047fec0
add esp, 4
test eax, eax
je 0x409678
mov dword [ebp - 0x90], eax
mov eax, edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
jmp 0x40967a
xor eax, eax
cmp eax, edi
jne 0x4099da
mov edi, dword [esi + 0xd]
test edi, edi
je 0x4096ae
push edi
call fcn.0047fec0
add esp, 4
test eax, eax
je 0x4096ae
mov dword [ebp - 0x80], eax
mov eax, edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
jmp 0x4096b0
xor eax, eax
mov edi, dword [esi + 0xd]
cmp eax, edi
jne 0x4099da
test edi, edi
je 0x4096e2
push edi
call fcn.0047fec0
add esp, 4
test eax, eax
je 0x4096e2
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
jmp 0x4096e4
xor edi, edi
mov eax, dword [esi + 0xd]
cmp edi, eax
jne 0x4099da
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040e470
mov ecx, dword [esi + 0xd]
cmp eax, ecx
jne 0x4099da
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ecx
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ecx
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x34]
call fcn.0040f1a0
test al, al
jne 0x409739
mov esi, 0x12
jmp 0x4099df
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x40976d
mov eax, dword [eax]
push 0x4d7574
push eax
call fcn.004889c7
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x409789
lea esi, [eax + 6]
jmp 0x4099c8
push ebx
call fcn.004898df
add esp, 4
mov edi, eax
push 0
push 0
push ebx
call fcn.00489184
add esp, 0xc
push ebx
call fcn.004898df
add esp, 4
mov esi, eax
push 2
push 0
push ebx
call fcn.00489184
add esp, 0xc
push ebx
call fcn.004898df
add esp, 4
sub eax, esi
mov dword [ebp - 0x34], eax
push 0
push edi
push ebx
call fcn.00489184
mov esi, dword [ebp - 0x34]
add esp, 0xc
test esi, esi
jne 0x4097ea
push ebx
call fcn.00488b1a
mov esi, 7
jmp 0x4099c5
push esi
call fcn.0047fec0
add esp, 4
push ebx
test eax, eax
je 0x4099bb
push esi
mov edi, eax
mov dword [ebp - 0xa0], esi
push 1
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
call fcn.00488d1e
add esp, 0x10
push ebx
cmp eax, esi
je 0x40984a
call fcn.004a0826
add esp, 4
push ebx
call fcn.00488b1a
mov esi, 6
jmp 0x4099c5
mov dword [ebp - 0x9c], esi
call fcn.00488b1a
mov ebx, dword [ebp - 0x30]
mov eax, 0xaaaaaaab
mul dword [ebp - 0x2c]
xor edi, edi
mov dword [ebp - 0x48], 0
mov eax, edx
mov dword [ebp - 0x44], edi
shr eax, 3
add esp, 4
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
test eax, eax
je 0x409940
mov esi, dword [ebp - 0x90]
add esi, 4
mov dword [ebp - 0x2c], esi
mov esi, dword [esi - 4]
mov edx, dword [ebx + 0xd]
mov dword [ebp - 0x38], esi
lea eax, [esi + edi]
cmp eax, edx
ja 0x409947
xor ecx, ecx
test esi, esi
je 0x4098f0
mov ebx, dword [ebp - 0x30]
mov eax, edx
mov edx, eax
cmp edi, eax
jae 0x4098ed
mov esi, dword [ebp - 0x48]
add esi, ecx
cmp esi, dword [ebp - 0x34]
jae 0x4098e0
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x30]
mov al, byte [eax + ecx]
add al, byte [esi + edx]
mov edx, dword [ebp - 0x5c]
add edx, edi
mov byte [edx + ecx], al
mov edx, dword [ebx + 0xd]
mov eax, dword [ebp - 0x2c]
inc ecx
mov esi, dword [eax - 4]
mov eax, edx
cmp ecx, esi
jb 0x4098b3
mov dword [ebp - 0x38], esi
add dword [ebp - 0x40], esi
add edi, esi
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi]
lea eax, [ecx + edi]
cmp eax, edx
ja 0x409947
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x70]
push ecx
push eax
mov eax, dword [ebp - 0x5c]
add eax, edi
push eax
call fcn.0047b690
mov eax, dword [esi]
add esp, 0xc
add dword [ebp - 0x44], eax
add edi, eax
mov eax, dword [esi + 4]
add esi, 0xc
mov ecx, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
inc ecx
add dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], esi
cmp ecx, dword [ebp - 0x94]
jb 0x409894
mov edx, dword [ebx + 0xd]
cmp edi, edx
je 0x409951
mov esi, 0x20
jmp 0x4099c8
mov eax, dword [ebp - 0x58]
mov ecx, edi
mov dword [ebp - 0x54], edi
cmp edi, eax
jbe 0x409964
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x54], edi
mov eax, dword [ebp - 0x50]
cmp eax, ecx
mov ecx, dword [ebp - 0x5c]
cmova eax, edi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004106f0
add esp, 4
test al, al
jne 0x409989
mov esi, 0xb
jmp 0x4099c8
lea esi, [ebx + 0x25]
mov edi, 0x10
lea edx, [ebp - 0x28]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4099b4
add edx, 4
add esi, 4
sub edi, 4
jae 0x409994
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040e510
mov esi, eax
jmp 0x4099c8
mov esi, 0x1e
jmp 0x4099c8
call fcn.00488b1a
mov esi, 1
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4099df
push eax
call fcn.0047feb0
add esp, 4
jmp 0x4099df
mov esi, 1
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4099ef
push eax
call fcn.0047feb0
add esp, 4
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4099ff
push eax
call fcn.0047feb0
add esp, 4
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x409a0f
push eax
call fcn.0047feb0
add esp, 4
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x409a22
push eax
call fcn.0047feb0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047a65d
mov esp, ebp
pop ebp
ret 0xc