Function at 0x4ec490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov edx, dword [esi + 8]
mov dword [esp + 0x10], edx
cmp dword [edi + 0x2c], 0
mov eax, dword [edi + 0x28]
lea ecx, [edx + 0x74]
mov dword [esp + 0x20], 0
lea ebx, [edx + 0x78]
mov byte [edi], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
jle 0x4ec8a7
mov eax, dword [eax]
mov dword [esp + 0x34], 0
test dword [eax + 4], 0x1000000
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x3c], ebx
je 0x4ec5a4
mov eax, dword [eax + 0x2c]
mov edi, dword [eax + 0x28]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x4ec58d
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test byte [eax + 4], 0x20
je 0x4ec58d
cmp dword [esp + 0x28], 0
je 0x4ec58d
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ec539
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [ecx]
cmp dword [edx + 0x78], ecx
jg 0x4ec55a
mov ecx, dword [esp + 0x10]
mov edx, 0x4f
push 0
push eax
push dword [esp + 0x30]
call fcn.00495ff0
add esp, 0xc
jmp 0x4ec58d
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x4f
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
push 0x10
push eax
push edi
push esi
mov dword [esp + 0x44], eax
call fcn.004b5ed0
add esp, 0x10
test ebx, ebx
je 0x4ec616
mov ebx, dword [ebx]
mov dword [esp + 0x30], ebx
cmp ebx, 1
jne 0x4ec5d3
mov al, byte [esi + 0x13]
test al, al
jne 0x4ec5c2
inc dword [esi + 0x2c]
mov edi, dword [esi + 0x2c]
jmp 0x4ec5fb
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov edi, dword [esi + eax*4 + 0x98]
jmp 0x4ec5fb
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x18], edx
cmp ebx, ecx
jg 0x4ec5f0
lea eax, [edx + ebx]
sub ecx, ebx
mov dword [esi + 0x20], eax
mov edi, edx
mov dword [esi + 0x1c], ecx
jmp 0x4ec5ff
mov eax, dword [esi + 0x2c]
lea edi, [eax + 1]
add eax, ebx
mov dword [esi + 0x2c], eax
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x3c]
mov ecx, esi
push 1
push 0
push edi
mov edx, ebx
call fcn.004b5630
add esp, 0xc
jmp 0x4ec624
xor edi, edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], 0
jl 0x4ec65e
test ebx, ebx
je 0x4ec65e
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4ec644
dec dword [esi + 0x38]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0xc]
push edi
push ebx
push eax
push dword [ecx + 0xc]
mov ecx, esi
call fcn.004e2dd0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 4]
test byte [eax + 4], 0x20
je 0x4ec75c
xor edi, edi
add ebx, 8
cmp edi, dword [esp + 0x30]
jge 0x4ec68f
mov edx, dword [ebx]
mov ecx, esi
call fcn.004acc30
inc edi
mov dword [esp + 0x3c], eax
add ebx, 0x14
test eax, eax
je 0x4ec670
mov edi, eax
jmp 0x4ec694
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4ec6ae
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x24], eax
je 0x4ec6ae
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov edx, dword [ecx]
cmp dword [ebx], edx
mov ebx, dword [esp + 0x10]
jg 0x4ec6d8
push 0
push 0
push eax
mov edx, 0x54
mov ecx, ebx
call fcn.00495ff0
add esp, 0xc
mov edx, eax
jmp 0x4ec70e
lea eax, [edx + 1]
mov dword [ecx], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x70]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x4ec726
push edi
mov edx, 0xfffffffe
call fcn.00496b00
add esp, 4
jmp 0x4ec760
test edx, edx
jns 0x4ec72e
mov edx, dword [ebx + 0x74]
dec edx
mov eax, dword [ebx + 0x70]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4ec74f
push 0xfffffffffffffffe
push edi
mov edx, eax
mov ecx, ebx
call fcn.00496d50
add esp, 8
jmp 0x4ec760
test edi, edi
je 0x4ec760
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
jmp 0x4ec760
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x74]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + 8]
cmp dword [ebx + 0x78], ecx
jg 0x4ec78b
push edx
push edi
push 0
mov edx, 0xa1
mov ecx, ebx
call fcn.00495ff0
add esp, 0xc
add ebx, 0x70
jmp 0x4ec7b9
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
add ebx, 0x70
mov dword [eax + ecx*4], 0xa1
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov edx, dword [eax + 4]
cmp byte [ecx + 0x57], 0
je 0x4ec7dc
push edx
mov edx, 0xfffffff8
call fcn.00496b00
add esp, 4
jmp 0x4ec7f0
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4ec80b
mov eax, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
movzx edx, al
mov eax, dword [ebx]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x4ec82e
test edi, edi
je 0x4ec839
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4ec839
movzx eax, al
mov dword [esi + eax*4 + 0x98], edi
inc byte [esi + 0x13]
jmp 0x4ec839
cmp eax, dword [esi + 0x1c]
jle 0x4ec839
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4ec86a
mov ecx, dword [edx + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4ec861
push edi
call fcn.00496810
mov edx, dword [esp + 0x14]
add esp, 4
jmp 0x4ec86a
mov ecx, dword [ecx + 0x40]
mov eax, dword [edx + 0x74]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x38]
mov edi, dword [ebp + 8]
inc ecx
mov eax, dword [esp + 0x1c]
add eax, 0x14
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], eax
cmp ecx, dword [edi + 0x2c]
lea ecx, [edx + 0x74]
jl 0x4ec4e6
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x24]
jne 0x4ec8a2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
jmp 0x4ec8ae
lea eax, [edi + 0x24]
jmp 0x4ec8e2
mov dword [esp + 0x2c], ebx
lea ebx, [edx + 0x70]
mov eax, dword [ebp + 8]
mov edi, ecx
add eax, 0x24
mov dword [esp + 0x34], ebx
mov edx, eax
mov dword [esp + 0x24], edx
cmp dword [eax], 0
je 0x4ec95c
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ebx
je 0x4ec95c
mov dword [esp + 0x24], eax
mov edi, ecx
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
cmp dword [eax], edx
mov edx, dword [esp + 0x24]
jg 0x4ec925
mov ecx, dword [esp + 0x10]
mov edx, 0x12
push 0
push 0
push dword [esp + 0x1c]
call fcn.00495ff0
mov edx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x4ec95c
mov eax, dword [esp + 0x20]
inc eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov ebx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x12
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [eax + 0x1c]
cmp dword [edx], ebx
jle 0x4ec997
lea edi, [eax + 4]
nop dword [eax + eax]
push dword [edi + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004b5580
mov eax, dword [esp + 0x28]
lea edi, [edi + 0x14]
inc ebx
add esp, 4
cmp ebx, dword [eax]
jl 0x4ec970
mov eax, dword [esp + 0x10]
lea edi, [eax + 0x74]
lea edx, [eax + 0x70]
jmp 0x4ec99f
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x20]
mov byte [ecx], 0
test ebx, ebx
je 0x4ec9e6
mov esi, dword [edi]
lea ecx, [esi - 1]
cmp ebx, ecx
jne 0x4ec9bf
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
cmp byte [eax + 0x57], 0
je 0x4ec9d6
mov eax, 0x5d1b70
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
test ebx, ebx
cmovns ecx, ebx
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret