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

Disassembly:
push 0x18
mov eax, 0x6cdaa0
call fcn.00401167
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004e74ba
test al, al
je 0x4ec548
push 0x525d
mov ecx, ebx
call fcn.004f7158
jmp 0x4ec7d4
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x10000
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x8c]
cmp dword [eax + 0xa4], edx
je 0x4ec5aa
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4ec5aa
call fcn.004db6e8
push eax
mov eax, dword [esi + 0x8c]
mov ecx, ebx
push dword [eax + 0xa4]
push esi
call fcn.004ec44e
mov edi, eax
test edi, edi
js 0x4ec693
xor edx, edx
push edx
push 1
mov ecx, ebx
call fcn.004eb031
mov edi, eax
test edi, edi
js 0x4ec693
mov ecx, ebx
call fcn.004eb163
mov edi, eax
test edi, edi
js 0x4ec693
push 0
lea ecx, [ebp - 0x1c]
call fcn.004c03b9
push 0
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
push esi
call fcn.004ea254
mov edi, eax
test edi, edi
js 0x4ec693
mov ecx, dword [esi + 0x9c]
call fcn.004db6e8
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [esi + 0x8c]
push 0
push dword [esi + 0x88]
push dword [ecx + 0xa4]
push 1
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [esi + 0xa4]
mov ecx, ebx
push dword [esi + 0xa0]
push eax
call fcn.004eb6c0
mov edi, eax
test edi, edi
js 0x4ec693
cmp edi, 0x40002
jne 0x4ec650
push dword [ebp + 8]
mov ecx, ebx
push esi
call fcn.004eafa3
mov edi, eax
test edi, edi
js 0x4ec693
mov ecx, dword [esi + 0x9c]
call fcn.004db6e8
mov eax, dword [eax + 0x3c]
cmp dword [eax + 4], 1
jne 0x4ec6b9
mov ecx, dword [esi + 0x9c]
call fcn.004db6e8
mov ecx, eax
call fcn.004dcaeb
test al, al
jne 0x4ec6b9
mov ecx, dword [esi + 0x9c]
call fcn.004db6e8
mov eax, dword [eax + 0x3c]
or byte [esi + 0x7a], 8
mov dword [esi + 0x18], eax
test edi, edi
jns 0x4ec6ad
cmp edi, 0x8004f0ec
jne 0x4ec6a9
push 0x5212
mov ecx, ebx
call fcn.004f7158
mov edi, eax
or byte [esi + 0x7a], 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x24]
jmp 0x4ec764
push dword [ebp + 8]
lea ecx, [esi + 0x18]
call fcn.004c1533
mov ecx, dword [esi + 0x9c]
call fcn.004db6e8
mov eax, dword [eax + 0x88]
and al, 0xfc
cmp al, 4
jne 0x4ec68f
push ecx
push dword [esi + 0x14]
mov ecx, ebx
call fcn.004e3624
mov ecx, eax
mov dword [esi + 0x18], eax
call fcn.004fc662
cmp eax, 0xc
jne 0x4ec68f
push ecx
push dword [esi + 0x1c]
call fcn.004e927d
mov edi, eax
test edi, edi
jne 0x4ec691
or byte [esi + 0x7a], 2
jmp 0x4ec6ad
mov ebx, dword [ebp - 0x20]
dec esi
mov edx, dword [ebx + 0x64]
mov ecx, dword [edx + 0x3c]
test ecx, ecx
je 0x4ec768
mov eax, dword [edx + 0x40]
mov eax, dword [ecx + eax*4]
dec dword [ecx + 0x28]
mov ecx, dword [edx + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x3c]
and dword [eax + ecx*4], 0
mov eax, dword [edx + 0x40]
test eax, eax
jne 0x4ec78a
mov eax, dword [edx + 0x3c]
cmp dword [eax + 0x30], 0
je 0x4ec74e
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + 0x30]
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], 9
mov eax, dword [ebp - 0x14]
mov ecx, ebx
push eax
mov byte [eax + 0x78], 0
call fcn.004e072f
test eax, eax
js 0x4ec768
dec dword [ebp - 0x24]
test esi, esi
jne 0x4ec70a
mov byte [ebp - 4], 1
cmp byte [ebp - 0x18], 0
je 0x4ec7c1
cmp byte [ebp - 0x17], 0
mov byte [ebp - 0x18], 0
je 0x4ec7c1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0x1c]
jmp 0x4ec7bd
jle 0x4ec73e
dec eax
mov dword [edx + 0x40], eax
jmp 0x4ec74e
mov esi, dword [ebx + 0x64]
jmp 0x4ec7b6
push ecx
lea ecx, [esi + 0xb4]
call fcn.004adfd1
push 0x720670
lea ecx, [esi + 0x28]
call fcn.004f8eec
mov esi, dword [esi + 0xf8]
test esi, esi
jne 0x4ec797
mov ebx, dword [ebx + 0x4c]
test ebx, ebx
jne 0x4ec792
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4ec7d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
call fcn.004026a3
ret 4