Function at 0x4e9470
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 0x4e94b6
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
cmp dword [eax + 4], 4
jbe 0x4e97e0
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
call fcn.004dc410
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x1c]
cmp esi, eax
jae 0x4e97e0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
cmp ecx, eax
ja 0x4e97e0
add ecx, esi
cmp ecx, eax
ja 0x4e97e0
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 0x4e9b03
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
cmp ebp, 0x20
jbe 0x4e952b
mov ebp, 0x20
mov esi, dword [ebx + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
mov dword [esp + 0x2c], ebp
je 0x4e9599
mov eax, dword [esi + 0x1c]
cmp ebp, eax
mov ebx, ebp
ja 0x4e954d
mov ecx, dword [esi + 0x18]
add ebp, ecx
cmp ebp, eax
mov ebp, ebx
jbe 0x4e9554
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
test ebx, ebx
je 0x4e956e
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 0x4e9570
xor ebx, ebx
cmp ebx, ebp
je 0x4e95d1
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 0x4e95b9
push eax
push 1
lea edx, [esp + 0x64]
push ebp
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e95b9
xor esi, esi
jmp 0x4e95c9
cmp dword [esi + 4], 0
je 0x4e95c6
mov esi, 2
jmp 0x4e95c9
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e9b03
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebx, 0x6a1540
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x10], 0
jne 0x4e9646
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
call fcn.0045a270
test al, al
je 0x4e96dc
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
mov al, 1
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.0x4e972c.4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx + 4]
ja 0x4e96dc
cmp eax, 4
mov edx, dword [ebx]
lea ecx, [esp + 0x5c]
jb 0x4e9675
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4e9679
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4e9661
test eax, eax
je 0x4e96d6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e96c8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e96d6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e96c8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e96d6
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4e96c8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4e96d6
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4e96d6
test esi, esi
mov eax, 1
jg 0x4e96d8
or eax, 0xffffffff
jmp 0x4e96d8
xor eax, eax
test eax, eax
je 0x4e971d
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 0x4e95e0
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.0x4e972c
jmp dword [eax*4 + 0x4e9b24]
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
mov al, 1
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 0x4e9980
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
mov al, 1
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 0x4e9980
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 4], 4
jae 0x4e97f8
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 0x4e9b03
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
je 0x4e9881
lea ebp, [eax + 4]
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jb 0x4e9837
mov ecx, dword [esi + 0x18]
lea edx, [ecx + 4]
cmp edx, eax
jbe 0x4e9840
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebp, eax
je 0x4e985c
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 0x4e98b6
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 0x4e989e
xor esi, esi
jmp 0x4e98ae
cmp dword [esi + 4], 0
je 0x4e98ab
mov esi, 2
jmp 0x4e98ae
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4e9b03
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.0x4e972c
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
mov al, 1
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 0x4e9980
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 0x4e9b03
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 0x4e9b03
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 0x4e99b3
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 0x4e99fc
mov eax, dword [edi + 8]
cmp eax, 1
jae 0x4e99f6
mov eax, 1
mov ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 4
mov esi, dword [esp + 0x20]
ja 0x4e9aa0
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 0x4e9a3f
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 0x4e9a66
lea ebx, [esp + 0x58]
call fcn.00410220
cmp eax, ebp
je 0x4e9a9c
mov ebx, 2
jmp 0x4e9a1f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4e9a86
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4e9a86
xor edi, edi
jmp 0x4e9a96
cmp dword [edi + 4], 0
je 0x4e9a93
mov edi, 2
jmp 0x4e9a96
mov edi, dword [edi + 0xc]
test edi, edi
mov ebx, edi
jne 0x4e9a1f
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.004ebe40
mov esi, eax
test esi, esi
jne 0x4e9b03
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