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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ec6a8
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x64], eax
mov byte [esp + 0x2b], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call fcn.0048c430
lea edi, [esp + 0x50]
lea esi, [esp]
call fcn.00464b3e
mov eax, dword [esp + 0x6c]
test byte [eax], al
mov dword [esp], eax
call fcn.0046dc50
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea eax, [0x4ec6c0]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x2b], 1
mov ecx, dword [eax + 0x10]
test ecx, 0x18
jne 0x4ec49b
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x4ec4f9
mov dword [esp], eax
call fcn.0046dfd0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00408300
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test al, al
jne 0x4ec4d1
mov ebx, 3
xor ecx, ecx
lea edx, [0x7b4fc5]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0046dc50
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov dword [eax + 0x20], 0
mov dword [esp], eax
lea ebp, [eax + 0x1c]
mov dword [esp + 0x44], ebp
mov dword [esp + 4], ebp
lea edi, [esp + 8]
lea esi, [esp + 0x50]
call fcn.00464b3e
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.004eb0b0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x78]
lea ebx, [ecx + edx]
mov ebp, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
cmp ebp, ebx
jae 0x4ec582
mov dword [esp + 0x38], ecx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
lea eax, [0x758ec0]
mov dword [esp + 0x10], eax
call fcn.0044b1b0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], eax
add ecx, eax
mov dword [esp], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00464d50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x20], eax
mov edx, dword [esp + 0x38]
mov dword [ecx + 0x24], edx
mov ebx, dword [0xaab020]
test ebx, ebx
jne 0x4ec5d3
mov ebx, dword [esp + 0x40]
mov dword [ecx + 0x1c], ebx
mov ebx, eax
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
jmp 0x4ec5e2
mov edi, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x40]
call fcn.004643b0
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x4ec5f8
mov esi, dword [esp + 0x74]
lea ebp, [ebp + esi - 1]
cmp byte [ebp], 0xa
je 0x4ec658
inc ebx
cmp edx, ebx
jae 0x4ec650
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x758ec0]
mov dword [esp + 0x10], eax
call fcn.0044b1b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x6c]
mov dword [ebx + 0x24], edx
mov edx, dword [0xaab020]
test edx, edx
jne 0x4ec641
mov dword [ebx + 0x1c], eax
jmp 0x4ec64a
mov edi, dword [esp + 0x44]
call fcn.004643b0
mov edx, ecx
mov ecx, ebx
mov ebx, edx
mov dword [ecx + 0x20], ebx
mov byte [ebx + eax - 1], 0xa
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov eax, dword [eax + 0x10]
mov ebx, dword [ecx + 0x1c]
mov ebp, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x24]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
call fcn.00462fa0
jmp fcn.004ec400