Function at 0x4ec930
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, ecx
test edi, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
jne 0x4ec974
lea eax, [ecx + 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 0x4ecc93
mov ebx, dword [eax + 8]
mov eax, dword [edx + 8]
cmp ebx, eax
mov dword [esp + 0x20], ebx
jae 0x4ecc93
cmp ecx, eax
ja 0x4ecc93
add ecx, ebx
cmp ecx, eax
ja 0x4ecc93
mov eax, dword [ebp + 0x14]
lea esi, [esp + 0x14]
call fcn.004ee070
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add ecx, ebx
mov eax, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4ecfba
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 4]
cmp ebx, 0x20
jbe 0x4ec9db
mov ebx, 0x20
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + 0x14]
test edx, edx
mov dword [esp + 0x2c], ebx
je 0x4eca48
mov eax, dword [esi + 0x1c]
cmp ebx, eax
ja 0x4ec9fa
mov ecx, dword [esi + 0x18]
lea ebp, [ecx + ebx]
cmp ebp, eax
jbe 0x4eca01
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebx, eax
test ebx, ebx
je 0x4eca1b
add ecx, edx
push ebx
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.0060d1b0
add esp, 0xc
add dword [esi + 0x18], ebx
jmp 0x4eca1d
xor ebx, ebx
cmp ebx, dword [esp + 0x2c]
je 0x4eca84
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 0x4eca6c
push eax
mov eax, dword [esp + 0x30]
push 1
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4eca6c
xor esi, esi
jmp 0x4eca7c
cmp dword [esi + 4], 0
je 0x4eca79
mov esi, 2
jmp 0x4eca7c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4ecfba
xor eax, eax
mov dword [esp + 0x2c], eax
mov ebx, 0x6a1540
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x10], 0
jne 0x4ecaf9
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
call fcn.0045a270
test al, al
je 0x4ecb8f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 4]
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 ecx, dword [esp + 0x48]
mov dword [edi], esi
mov dword [edi + 4], ebp
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x20]
mov dword [edi + 8], edx
mov edx, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp case.0x4ecbdf.4
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
cmp eax, dword [edx + 4]
ja 0x4ecb8f
cmp eax, 4
mov edx, dword [ebx]
lea ecx, [esp + 0x5c]
jb 0x4ecb28
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4ecb2c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4ecb14
test eax, eax
je 0x4ecb89
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ecb7b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ecb89
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ecb7b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ecb89
movzx esi, byte [edx]
movzx ebp, byte [ecx]
sub esi, ebp
jne 0x4ecb7b
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4ecb89
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x4ecb89
test esi, esi
mov eax, 1
jg 0x4ecb8b
or eax, 0xffffffff
jmp 0x4ecb8b
xor eax, eax
test eax, eax
je 0x4ecbd0
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 0x4eca93
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.0x4ecbdf
jmp dword [eax*4 + 0x4ecfdc]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x20]
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
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 0x4ece33
mov ecx, dword [esp + 0x18]
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 + 0x20]
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 0x4ece33
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 4], 4
jae 0x4eccab
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 + 0x18]
add ecx, dword [edx + 4]
mov ebp, dword [esp + 0x30]
add ecx, dword [esp + 0x20]
mov eax, ebp
call fcn.004e39f0
mov esi, eax
test esi, esi
jne 0x4ecfba
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
je 0x4ecd34
lea ebp, [eax + 4]
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jb 0x4eccea
mov ecx, dword [esi + 0x18]
lea edx, [ecx + 4]
cmp edx, eax
jbe 0x4eccf3
mov ecx, dword [esi + 0x18]
sub eax, ecx
mov ebp, eax
je 0x4ecd0f
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 0x4ecd69
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 0x4ecd51
xor esi, esi
jmp 0x4ecd61
cmp dword [esi + 4], 0
je 0x4ecd5e
mov esi, 2
jmp 0x4ecd61
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4ecfba
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.0x4ecbdf
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov ebp, dword [ebx + 0x18]
add edx, dword [esp + 0x20]
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 0x4ece33
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 4]
add ebp, eax
add ebp, dword [esp + 0x20]
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 0x4ecfba
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 0x4ecfba
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 0x4ece66
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 0x4eceaf
mov eax, dword [edi + 8]
cmp eax, 1
jae 0x4ecea9
mov eax, 1
mov ecx, eax
mov dword [esp + 0x54], ecx
cmp ecx, 4
mov esi, dword [esp + 0x18]
ja 0x4ecf53
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
call fcn.004e39f0
mov ebx, eax
test ebx, ebx
je 0x4ecef2
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 0x4ecf19
lea ebx, [esp + 0x58]
call fcn.00410220
cmp eax, ebp
je 0x4ecf4f
mov ebx, 2
jmp 0x4eced2
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4ecf39
push ecx
push 1
push eax
lea edx, [esp + 0x64]
push edx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x4ecf39
xor edi, edi
jmp 0x4ecf49
cmp dword [edi + 4], 0
je 0x4ecf46
mov edi, 2
jmp 0x4ecf49
mov edi, dword [edi + 0xc]
test edi, edi
mov ebx, edi
jne 0x4eced2
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.004ef9c0
mov esi, eax
test esi, esi
jne 0x4ecfba
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