Function at 0x4ed6f0
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], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
jne 0x4ed736
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 esi, dword [eax + 4]
cmp esi, 4
jbe 0x4eda62
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004dc410
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x18]
cmp ebx, eax
jae 0x4eda62
cmp esi, eax
ja 0x4eda62
add esi, ebx
cmp esi, eax
ja 0x4eda62
mov eax, dword [ebp + 0x14]
lea esi, [esp + 0x14]
call fcn.004ee070
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
add ecx, ebx
mov eax, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4edd89
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx + 4]
cmp ebx, 0x20
jbe 0x4ed7aa
mov ebx, 0x20
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
mov dword [esp + 0x2c], ebx
je 0x4ed817
mov eax, dword [esi + 0x1c]
cmp ebx, eax
ja 0x4ed7c9
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + ebx]
cmp ebp, eax
jbe 0x4ed7d0
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
test ebx, ebx
je 0x4ed7ea
push ebx
add ecx, edx
push ecx
lea eax, [esp + 0x64]
push eax
call fcn.0060d1b0
add esp, 0xc
add dword [esi + 0x18], ebx
jmp 0x4ed7ec
xor ebx, ebx
cmp ebx, dword [esp + 0x2c]
je 0x4ed853
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 0x4ed83b
mov ecx, dword [esp + 0x2c]
push eax
push 1
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4ed83b
xor esi, esi
jmp 0x4ed84b
cmp dword [esi + 4], 0
je 0x4ed848
mov esi, 2
jmp 0x4ed84b
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4edd89
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebx, 0x6a1540
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x10], 0
jne 0x4ed8c8
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
call fcn.0045a270
test al, al
je 0x4ed95e
mov eax, dword [esp + 0x20]
mov ebp, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
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 + 0x18]
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.0x4ed9ae.4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx + 4]
ja 0x4ed95e
cmp eax, 4
mov edx, dword [ebx]
lea ecx, [esp + 0x5c]
jb 0x4ed8f7
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4ed8fb
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4ed8e3
test eax, eax
je 0x4ed958
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ed94a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ed958
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ed94a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ed958
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ed94a
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ed958
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x4ed958
test esi, esi
mov eax, 1
jg 0x4ed95a
or eax, 0xffffffff
jmp 0x4ed95a
xor eax, eax
test eax, eax
je 0x4ed99f
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 0x4ed862
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.0x4ed9ae
jmp dword [eax*4 + 0x4eddac]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x1c]
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 0x4edc02
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov esi, dword [ebx + 8]
mov ebp, dword [ebx + 0x18]
add edx, dword [esp + 0x18]
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 0x4edc02
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 4], 4
jae 0x4eda7a
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 + 0x18]
mov eax, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4edd89
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
je 0x4edb03
lea ebp, [eax + 4]
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jb 0x4edab9
mov ecx, dword [esi + 0x18]
lea edx, [ecx + 4]
cmp edx, eax
jbe 0x4edac2
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebp, eax
je 0x4edade
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 0x4edb38
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 0x4edb20
xor esi, esi
jmp 0x4edb30
cmp dword [esi + 4], 0
je 0x4edb2d
mov esi, 2
jmp 0x4edb30
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4edd89
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x28]
cmp esi, eax
mov dword [esp + 0x34], eax
ja case.default.0x4ed9ae
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov ebp, dword [ebx + 0x18]
add edx, dword [esp + 0x18]
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 0x4edc02
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
mov ebp, dword [ecx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
add ebp, eax
add ebp, dword [esp + 0x18]
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 0x4edd89
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 0x4edd89
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 0x4edc35
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 + 0x1c]
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 0x4edc7e
mov eax, dword [edi + 8]
cmp eax, 1
jae 0x4edc78
mov eax, 1
mov ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 4
mov esi, dword [esp + 0x20]
ja 0x4edd22
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
call fcn.004e39f0
mov ebx, eax
test ebx, ebx
je 0x4edcc1
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 0x4edce8
lea ebx, [esp + 0x58]
call fcn.00410220
cmp eax, ebp
je 0x4edd1e
mov ebx, 2
jmp 0x4edca1
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4edd08
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4edd08
xor edi, edi
jmp 0x4edd18
cmp dword [edi + 4], 0
je 0x4edd15
mov edi, 2
jmp 0x4edd18
mov edi, dword [edi + 0xc]
test edi, edi
mov ebx, edi
jne 0x4edca1
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 + 0x44], eax
mov eax, dword [edi + 0xc]
push 0x45
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], edx
push ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x9c]
call fcn.004f05e0
mov esi, eax
test esi, esi
jne 0x4edd89
xor ecx, ecx
cmp dword [edi + 0x10], 5
setne cl
sub ecx, 1
and ecx, 0xf4240
mov esi, ecx
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