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

Disassembly:
sub esp, 0x70
mov eax, dword [0x6d7160]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
mov edi, edx
test edi, edi
mov ebx, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], eax
jne 0x4e86b6
lea eax, [edx + 4]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov ecx, dword [eax + 4]
cmp ecx, 4
jbe 0x4e89cf
mov esi, dword [eax + 8]
mov eax, dword [ebp + 8]
cmp esi, eax
mov dword [esp + 0x1c], esi
jae 0x4e89cf
cmp ecx, eax
ja 0x4e89cf
add ecx, esi
cmp ecx, eax
ja 0x4e89cf
mov eax, dword [ebx + 0x14]
lea ecx, [esp + 0x14]
call fcn.004eb580
mov ecx, dword [ebp + 4]
add ecx, esi
mov eax, ebx
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4e8cf2
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
cmp ebp, 0x20
jbe 0x4e8719
mov ebp, 0x20
mov esi, dword [ebx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
mov dword [esp + 0x2c], ebp
je 0x4e8787
mov eax, dword [esi + 0x1c]
cmp ebp, eax
mov ebx, ebp
ja 0x4e873b
mov ecx, dword [esi + 0x18]
add ebp, ecx
cmp ebp, eax
mov ebp, ebx
jbe 0x4e8742
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
test ebx, ebx
je 0x4e875c
add ecx, edx
push ebx
push ecx
lea ecx, [esp + 0x64]
push ecx
call fcn.0060d1b0
add esp, 0xc
add dword [esi + 0x18], ebx
jmp 0x4e875e
xor ebx, ebx
cmp ebx, ebp
je 0x4e87bf
lea edi, [esp + 0x14]
mov esi, 2
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x4e87a7
push eax
push 1
lea edx, [esp + 0x64]
push ebp
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e87a7
xor esi, esi
jmp 0x4e87b7
cmp dword [esi + 4], 0
je 0x4e87b4
mov esi, 2
jmp 0x4e87b7
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e8cf2
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebx, 0x6a1540
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x10], 0
jne 0x4e8834
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
call fcn.0045a270
test al, al
je 0x4e88cb
mov eax, dword [esp + 0x20]
mov ebp, dword [eax + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x18]
add edx, eax
add eax, 2
mov dword [esp + 0x48], eax
xor al, al
mov ecx, ebx
call fcn.004dd1a0
mov dword [edi], esi
mov dword [edi + 4], ebp
mov dword [edi + 8], edx
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
jmp case.0x4e891b.4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
ja 0x4e88cb
cmp eax, 4
mov edx, dword [ebx]
lea ecx, [esp + 0x5c]
jb 0x4e8864
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4e8868
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4e8850
test eax, eax
je 0x4e88c5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e88b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e88c5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e88b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e88c5
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e88b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e88c5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4e88c5
test esi, esi
mov eax, 1
jg 0x4e88c7
or eax, 0xffffffff
jmp 0x4e88c7
xor eax, eax
test eax, eax
je 0x4e890c
mov eax, dword [esp + 0x28]
add dword [esp + 0x2c], 1
add eax, 0x1c
add ebx, 0x1c
cmp eax, 0x364
mov dword [esp + 0x28], eax
jb 0x4e87ce
lea edi, [esp + 0x14]
call fcn.00401700
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov eax, dword [ebx + 0x10]
add eax, 0xffffffff
cmp eax, 4
ja case.default.0x4e891b
jmp dword [eax*4 + 0x4e8d14]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 4]
add edx, eax
add esi, eax
lea eax, [edx + 2]
mov dword [esp + 0x48], eax
xor al, al
mov ecx, ebx
call fcn.004dd1a0
mov ecx, dword [esp + 0x3c]
mov dword [edi], ebp
mov dword [edi + 4], ecx
mov dword [edi + 8], esi
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x48]
mov byte [esp + 0x4c], al
mov dword [edi + 0x10], edx
jmp 0x4e8b6f
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
mov esi, dword [ebx + 8]
mov ebp, dword [ebx + 0x18]
add edx, dword [esp + 0x1c]
lea eax, [esi + 2]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
xor al, al
mov ecx, ebx
call fcn.004dd1a0
mov ecx, dword [esp + 0x40]
mov dword [edi], ebp
mov dword [edi + 4], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov byte [esp + 0x4c], al
mov dword [edi + 0x10], edx
jmp 0x4e8b6f
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 4
jae 0x4e89e7
lea edi, [esp + 0x14]
call fcn.00401700
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x20]
add ecx, dword [edx + 4]
mov ebp, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov eax, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4e8cf2
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
je 0x4e8a70
lea ebp, [eax + 4]
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jb 0x4e8a26
mov ecx, dword [esi + 0x18]
lea edx, [ecx + 4]
cmp edx, eax
jbe 0x4e8a2f
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebp, eax
je 0x4e8a4b
mov eax, dword [esi + 0x14]
add ecx, eax
push ebp
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.0060d1b0
add dword [esi + 0x18], ebp
add esp, 0xc
cmp ebp, 4
je 0x4e8aa5
lea edi, [esp + 0x14]
mov esi, 2
call fcn.00401700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esp + 0x30]
push 4
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e8a8d
xor esi, esi
jmp 0x4e8a9d
cmp dword [esi + 4], 0
je 0x4e8a9a
mov esi, 2
jmp 0x4e8a9d
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e8cf2
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x28]
cmp esi, eax
mov dword [esp + 0x34], eax
ja case.default.0x4e891b
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ebp, dword [ebx + 0x18]
add edx, dword [esp + 0x1c]
lea eax, [esi + 2]
mov dword [esp + 0x48], eax
xor al, al
mov ecx, ebx
call fcn.004dd1a0
mov ecx, dword [esp + 0x34]
mov dword [edi], ebp
mov dword [edi + 4], edx
mov edx, dword [esp + 0x48]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov byte [esp + 0x4c], al
mov dword [edi + 0x10], edx
jmp 0x4e8b6f
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
add ebp, eax
add ebp, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4e8cf2
mov edx, dword [esp + 0x30]
mov esi, dword [edx + 0x10]
lea eax, [esp + 0x27]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004dcfa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e8cf2
mov ebx, dword [ebx + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov cl, byte [esp + 0x27]
mov dword [edi], ebx
mov dword [edi + 4], ebp
mov dword [edi + 8], edx
lea esi, [eax + 2]
mov dword [edi + 0xc], eax
mov byte [esp + 0x4c], cl
mov dword [edi + 0x10], esi
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x2c]
cmp eax, 0x1f
jb 0x4e8ba2
lea edi, [esp + 0x14]
call fcn.00401700
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
lea edi, [eax*8]
sub edi, eax
cmp dword [edi*4 + 0x6a1550], 5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
lea edi, [edi*4 + 0x6a1540]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
je 0x4e8beb
mov eax, dword [edi + 8]
cmp eax, 1
jae 0x4e8be5
mov eax, 1
mov ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 4
mov esi, dword [esp + 0x20]
ja 0x4e8c8f
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
call fcn.004e39f0
mov ebx, eax
test ebx, ebx
je 0x4e8c2e
lea edi, [esp + 0x14]
call fcn.00401700
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x10]
cmp dword [edi + 0x14], 0
mov eax, dword [esp + 0x54]
mov ebp, eax
je 0x4e8c55
lea ebx, [esp + 0x58]
call fcn.00410220
cmp eax, ebp
je 0x4e8c8b
mov ebx, 2
jmp 0x4e8c0e
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4e8c75
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e8c75
xor edi, edi
jmp 0x4e8c85
cmp dword [edi + 4], 0
je 0x4e8c82
mov edi, 2
jmp 0x4e8c85
mov edi, dword [edi + 0xc]
test edi, edi
mov ebx, edi
jne 0x4e8c0e
mov edi, dword [esp + 0x34]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0xc]
push 0x45
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x94]
push edx
lea ecx, [esp + 0x44]
call fcn.004eba70
mov esi, eax
test esi, esi
jne 0x4e8cf2
cmp dword [edi + 0x10], 5
setne al
sub eax, 1
and eax, 0xf4240
mov esi, eax
lea edi, [esp + 0x14]
call fcn.00401700
mov ecx, dword [esp + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00607d6d
add esp, 0x70
ret 0xc