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

Disassembly:
mov eax, 0x8c8c
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x8c88], eax
push ebx
push ebp
mov ebx, ecx
movzx ebp, word [ebx + 0x16]
push esi
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x3c], ebp
cmp bp, 0xd
je 0x45e7c8
mov byte [esp + 0x1b], 0
cmp bp, 0x1c
jne 0x45e7cd
mov byte [esp + 0x1b], 1
movsx eax, word [ebx + 4]
mov esi, dword [ebx + 0xa]
cmp byte [esi + 0x9c], 0
mov dword [esp + 0x5c], eax
je 0x45e809
lea ecx, [ebx + 0x61c]
mov dword [esp + 0x90], ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x8430]
mov dword [esp + 0x94], edx
mov dword [esp + eax*4 + 0x8c], ecx
jmp 0x45e87c
cmp byte [esi + 0x99], 1
mov eax, dword [esp + 0x48]
jne 0x45e822
dec eax
lea edx, [esp + 0x38]
mov dword [esp + eax*4 + 0x90], edx
dec eax
test eax, eax
jle 0x45e86e
mov ecx, dword [esp + 0x8ca0]
mov edx, dword [ecx]
mov edi, esi
mov ecx, dword [edi + 0xab]
movsx ecx, word [ecx + eax*2]
mov bp, word [edx + ecx*2]
cmp bp, word [edx + ecx*2 + 2]
lea ecx, [edx + ecx*2]
jne 0x45e84e
xor ecx, ecx
jmp 0x45e85e
mov ecx, dword [esi + 0xab]
movsx ecx, word [ecx + eax*2]
movsx ecx, word [edx + ecx*2]
add ecx, edx
mov dword [esp + eax*4 + 0x90], ecx
dec eax
test eax, eax
jg 0x45e832
mov ebp, dword [esp + 0x3c]
lea edx, [esp + 0x8430]
mov dword [esp + 0x90], edx
movsx eax, bp
add eax, 0xfffffffc
cmp eax, 0x19
ja case.0x45e892.5
movzx eax, byte [eax + 0x45ee90]
jmp dword [eax*4 + 0x45ee7c]
mov edi, dword [ebx + 0x618]
mov eax, edi
mov dword [esp + 0x14], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45e8a8
sub eax, edx
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
jmp 0x45e9b4
mov eax, dword [ebx + 0x618]
mov ecx, dword [eax]
lea edi, [eax + 4]
xor esi, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
jmp 0x45e9b4
mov eax, dword [ebx + 0x618]
mov ecx, dword [eax]
mov edx, dword [ebx + 0x620]
push 0
add eax, 0xc
push 1
push eax
mov eax, dword [ebx + 0x12]
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], ecx
call fcn.00423900
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45ee64
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
jmp 0x45e9b8
mov ecx, dword [ebx + 0x618]
mov edi, dword [ebx + 0x620]
push 0x5a8528
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
jne 0x45e959
mov esi, 0x836
jmp 0x45e976
mov eax, dword [ebx + 0x618]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0056a9c0
add esp, 8
test eax, eax
je 0x45e992
mov esi, 0x727
mov ecx, dword [ebx + 0x618]
push ecx
push 0x283f
push esi
call fcn.00406f10
add esp, 0xc
mov eax, esi
jmp 0x45edc4
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
jmp 0x45e9b8
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x45edae
mov ecx, 1
xor ebp, ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x4c], ecx
lea ebx, [ebx]
cmp dword [esp + 0x20], 0
je 0x45ecf2
cmp byte [esp + 0x1b], 0
je 0x45eab1
lea edx, [eax - 6]
cmp esi, edx
jl 0x45eab1
cmp byte [esp + 0x13], 0
jne 0x45eab1
sub eax, esi
mov ebx, eax
je 0x45ea1f
push ebx
add esi, edi
push esi
push edi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x40]
mov edi, 0x800
xor esi, esi
sub edi, ebx
mov dword [esp + 0x1c], esi
cmp edi, eax
jb 0x45ea38
mov edi, eax
cmp edi, eax
sete byte [esp + 0x13]
cmp word [esp + 0x3c], 0xd
jne 0x45ea81
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x30]
lea edx, [ebx + ecx]
mov ecx, dword [eax + 0x12]
push edi
push edx
push ecx
call fcn.00423d00
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45ee64
cmp dword [esp + 0x58], edi
jne 0x45eddd
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
jmp 0x45eaa3
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
push edx
push 1
lea ecx, [ebx + eax]
push edi
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x45edf6
sub dword [esp + 0x40], edi
add edi, ebx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x14]
mov eax, dword [0x5b46ac]
cmp byte [eax + 0x342], 0
jne 0x45eb74
mov dl, byte [esi + edi]
movzx eax, dl
mov ecx, eax
and ecx, 0x80000007
jns 0x45ead8
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edi, dword [0x6a0b5c]
mov ebx, 0x80
sar ebx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + edi]
test cl, bl
je 0x45eb0e
cmp dword [esp + 0x44], 0
jne 0x45eb66
inc esi
dec dword [esp + 0x20]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x1c], esi
jmp 0x45ecdb
cmp dword [esp + 0x30], 0
jne 0x45eb66
mov ecx, dword [eax*4 + 0x6a0b70]
mov dword [esp + 0x44], 0
test ecx, ecx
je 0x45eb42
jmp 0x45eb30
mov al, byte [ecx]
mov byte [esp + ebp + 0x8430], al
inc ebp
inc ecx
test al, al
jne 0x45eb30
dec ebp
jmp 0x45eb4a
mov byte [esp + ebp + 0x8430], dl
inc ebp
cmp ebp, 0x800
mov dword [esp + 0x28], ebp
jl 0x45eb66
mov byte [esp + ebp + 0x8430], 0
mov dword [esp + 0x30], 1
inc esi
dec dword [esp + 0x20]
mov dword [esp + 0x1c], esi
jmp 0x45ecdb
mov eax, dword [eax + 0x343]
add esi, edi
mov dword [esp + 0x34], esi
cmp eax, 0xa
je 0x45ebd7
cmp eax, 0xb
je 0x45ebd7
cmp eax, 8
je 0x45ebd0
cmp eax, 9
je 0x45ebd0
cmp eax, 2
je 0x45ebc9
cmp eax, 3
je 0x45ebc9
cmp eax, 4
je 0x45ebc9
cmp eax, 1
je 0x45ebb7
test byte [esi], 0x80
mov ecx, 0
sete cl
test ecx, ecx
jne 0x45ebc9
mov edx, dword [esp + 0x34]
push edx
push eax
call fcn.0056daa0
add esp, 8
mov ebp, eax
jmp 0x45ebdc
mov ebp, 1
jmp 0x45ebdc
mov ebp, 2
jmp 0x45ebdc
mov ebp, 4
mov eax, dword [esp + 0x34]
mov edx, dword [0x5b46ac]
push ebp
push eax
mov eax, dword [edx + 0x343]
lea ecx, [esp + 0x5c]
push ecx
push 0
push eax
call fcn.00570450
add esp, 0x14
cmp eax, 0xffffffff
je 0x45ee28
mov eax, dword [esp + 0x54]
mov ecx, eax
and ecx, 7
mov edx, 0x80
sar edx, cl
mov ecx, dword [0x6a0b5c]
shr eax, 3
mov al, byte [eax + ecx]
test al, dl
je 0x45ec3f
cmp dword [esp + 0x44], 0
jne 0x45eccb
mov dword [esp + 0x4c], 0
jmp 0x45eccb
cmp dword [esp + 0x30], 0
jne 0x45eccb
mov eax, dword [esp + 0x34]
mov ecx, ebp
lea ebx, [esp + 0x54]
lea edi, [esp + 0x50]
mov dword [esp + 0x44], 0
call fcn.0045e5a0
mov esi, eax
test esi, esi
jne 0x45ee64
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
test ecx, ecx
je 0x45ec96
jmp 0x45ec80
mov al, byte [ecx]
mov byte [esp + esi + 0x8430], al
inc esi
inc ecx
test al, al
jne 0x45ec80
mov dword [esp + 0x50], ecx
dec esi
jmp 0x45ecaf
mov ecx, dword [esp + 0x34]
push ebp
push ecx
lea edx, [esp + esi + 0x8438]
push edx
call dword [sym.imp.MSVCR90.dll_strncpy]
add esp, 0xc
add esi, ebp
cmp esi, 0x800
mov dword [esp + 0x28], esi
jl 0x45eccb
mov byte [esp + esi + 0x8430], 0
mov dword [esp + 0x30], 1
add dword [esp + 0x1c], ebp
sub dword [esp + 0x20], ebp
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x4c], 0
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
jne 0x45e9e0
test ebp, ebp
je 0x45ed9f
cmp dword [esp + 0x30], 0
jne 0x45ed9f
mov edi, dword [esp + 0x5c]
push 0x7fa0
lea eax, [esp + 0x494]
push eax
lea ecx, [ebx + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push edi
mov byte [esp + ebp + 0x8444], 0
call fcn.00578140
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45ee51
mov eax, dword [ebx + 0xa]
cmp byte [eax + 0x9c], 0
je 0x45ed6a
movsx eax, word [esp + 0x490]
movsx ecx, word [esp + edi*2 + 0x490]
sub ecx, eax
push ecx
push esi
lea edx, [esp + eax + 0x498]
mov eax, dword [ebx]
push edx
push eax
jmp 0x45ed79
mov edx, dword [ebx]
push 0
push 0
lea ecx, [esp + 0x498]
push ecx
push edx
call fcn.004d9ed0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x45ee64
inc dword [esp + 0x38]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x20], 0
jne 0x45e9c3
mov ebp, dword [esp + 0x3c]
cmp bp, 0x1c
jne 0x45edc2
mov edx, dword [esp + 0x48]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8c98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x8c8c
ret
push 0x283f
push 0x849
call fcn.00406f10
add esp, 8
mov eax, 0x849
jmp 0x45edc4
call dword [sym.imp.MSVCR90.dll__errno]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x618]
push eax
push edx
push 0x5ab8a4
push 0x283f
push 0x719
call fcn.00406f10
add esp, 0x14
mov eax, 0x719
jmp 0x45edc4
mov eax, dword [0x5b46ac]
mov ecx, dword [eax + 0x343]
push ecx
call fcn.0056d930
push eax
push 0x2847
push 0x25ea
call fcn.00406f10
add esp, 0x10
jmp 0x45edc4
cmp esi, 0xf
jne 0x45ee64
push 0x283f
push esi
call fcn.00406f10
add esp, 8
push 0x283f
push 0
call fcn.00406f10
add esp, 8
mov eax, esi
jmp 0x45edc4