Function at 0x4800d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x44], 1
mov word [esp + 0x46], bx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00458300
mov eax, dword [ebp + 0x16bc]
mov edi, dword [esp + 0x7c]
mov edx, dword [ebp + 0x1698]
mov byte [esp + 0x58], bl
mov ecx, dword [eax + edi*4]
push ebx
push ecx
push edx
call fcn.005303b8
mov eax, dword [ebp + 0x1698]
add esp, 0xc
push eax
push 4
lea ecx, [esp + 0x6c]
push 2
push ecx
call fcn.0052edba
movsx eax, word [esp + 0x76]
movsx edx, word [esp + 0x74]
movsx ecx, word [esp + 0x78]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1698]
push eax
mov dword [esp + 0x2c], edx
movsx edx, word [esp + 0x7e]
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], ebx
call fcn.0052edba
add esp, 0x20
cmp eax, 1
jne 0x4801c1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov eax, dword [ebp + 0x1698]
push eax
call fcn.0052fa48
add esp, 4
cmp eax, 0xffffffff
je 0x4801d9
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 2
mov dword [esp + 0x2c], 0xff00ff00
jne 0x480249
mov eax, dword [ebp + 0x1698]
push eax
push 1
lea edx, [esp + 0x1c]
push 4
push edx
mov dword [esp + 0x24], ebx
call fcn.0052edba
add esp, 0x10
cmp eax, 1
jne 0x480211
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x18]
push ecx
push edi
mov eax, ebp
call fcn.00481c80
test eax, eax
lea esi, [esp + 0x30]
jne 0x480363
call fcn.00458440
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005120db
add esp, 0x64
ret 8
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
call fcn.00459120
test eax, eax
jne 0x480277
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x3c]
mov cl, byte [esp + 0x13]
imul eax, dword [esp + 0x38]
cmp cl, bl
jne 0x4802d7
mov ecx, dword [ebp + 0x1698]
mov edx, dword [esp + 0x40]
push ecx
push eax
push 4
push edx
call fcn.0052edba
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push edi
mov eax, ebp
call fcn.00481c80
test eax, eax
lea esi, [esp + 0x30]
jne 0x480363
call fcn.00458440
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005120db
add esp, 0x64
ret 8
cmp cl, 1
jne 0x48029f
mov esi, dword [esp + 0x40]
lea eax, [esi + eax*4]
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x48029f
jmp 0x4802f0
mov eax, dword [ebp + 0x1698]
push eax
call fcn.0052fa48
mov ecx, dword [ebp + 0x1698]
add esp, 4
push ecx
push 1
lea edx, [esp + 0x68]
push 4
push edx
mov edi, eax
call fcn.0052edba
add esp, 0x10
cmp edi, ebx
je 0x480333
mov eax, dword [esp + 0x60]
sub edi, 1
cmp esi, dword [esp + 0x14]
jae 0x480342
mov dword [esi], eax
add esi, 4
cmp edi, ebx
jne 0x480321
cmp esi, dword [esp + 0x14]
jb 0x4802f0
mov edi, dword [esp + 0x7c]
jmp 0x48029f
lea esi, [esp + 0x30]
call fcn.00458440
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005120db
add esp, 0x64
ret 8
call fcn.00458440
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005120db
add esp, 0x64
ret 8