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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x535008]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [edx]
push esi
mov dword [esp + 0x20], eax
push edi
mov eax, dword [eax + 0x24]
xor edi, edi
mov dword [esp + 0x30], edi
mov edi, dword [edx + 0x10]
mov dword [esp + 0x18], edx
mov eax, dword [eax]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
test edi, edi
jne 0x4ec13d
push edi
push edi
push 0x517749
push ecx
jmp 0x4ec6ef
xorps xmm0, xmm0
mov dword [esp + 0x68], 0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], edx
mov eax, dword [edi]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], eax
cmp eax, 5
je 0x4ec1c5
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x64]
push eax
push 0x4e98c0
lea edx, [esp + 0x34]
call fcn.004e9800
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4ec1bf
cmp dword [esp + 0x3c], 2
je 0x4ec1bf
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x64]
push eax
push 0x4e98c0
lea edx, [esp + 0x34]
call fcn.004e9800
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x6c]
jmp 0x4ec1d5
mov eax, dword [esp + 0x6c]
jmp 0x4ec1d9
mov eax, dword [edi + 0x14]
xor esi, esi
mov dword [esp + 0x68], 1
mov eax, dword [eax + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], eax
test esi, esi
jne 0x4ec3c2
lea edi, [eax + eax*2]
shl edi, 2
call fcn.004cbab0
test eax, eax
jne 0x4ec3bd
mov eax, edi
or eax, esi
je 0x4ec20a
push esi
push edi
call fcn.0043a970
add esp, 8
jmp 0x4ec20c
xor eax, eax
mov dword [esp + 0x88], eax
test eax, eax
je 0x4ec3bd
mov edi, dword [esp + 0x18]
xor edx, edx
mov ecx, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x70], ecx
mov eax, dword [edi + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x18], edx
jle 0x4ec3c2
nop dword [eax]
mov edi, dword [edi + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
mov eax, dword [edi]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
cmp eax, 5
je 0x4ec2dc
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x70]
push eax
push 0x4ec040
lea edx, [esp + 0x24]
call fcn.004e9800
add esp, 8
test eax, eax
jne 0x4ec36e
cmp dword [esp + 0x20], 2
je 0x4ec36e
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x70]
push eax
push 0x4ec040
lea edx, [esp + 0x24]
call fcn.004e9800
add esp, 8
jmp 0x4ec36e
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], 0
push eax
push edx
mov edx, edi
call fcn.004d9c10
mov eax, dword [edi + 0x14]
add esp, 8
mov edi, dword [esp + 0x5c]
mov esi, dword [eax + 0x40]
mov dword [esp + 0x20], esi
test edi, edi
je 0x4ec338
mov al, byte [edi]
test al, al
jns 0x4ec31f
lea edx, [esp + 0x58]
mov ecx, edi
call fcn.004d08d0
mov ecx, eax
mov eax, dword [esp + 0x58]
jmp 0x4ec32b
movzx eax, al
mov ecx, 1
mov dword [esp + 0x58], eax
add edi, ecx
add eax, 0xfffffffe
mov dword [esp + 0x5c], edi
mov dword [esp + 0x1c], eax
test esi, esi
jle 0x4ec36a
dec esi
nop dword [eax]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
lea ecx, [edx + edx*2]
inc edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], esi
dec esi
sub dword [esp + 0x20], 1
mov dword [eax + ecx*4], edi
mov dword [eax + ecx*4 + 4], edx
jne 0x4ec340
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0xc]
call fcn.00467ac0
push dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x24]
push dword [eax + 0xc]
call fcn.00467650
add esp, 0x10
test edi, edi
jne 0x4ec46c
mov edi, dword [esp + 0x18]
push dword [esp + 0x1c]
push dword [edi + 0xc]
call fcn.00467d40
add esp, 8
cmp eax, 5
je 0x4ec6be
mov esi, 7
push dword [esp + 0x88]
call fcn.0043abf0
mov eax, dword [esp + 0x28]
add esp, 4
mov edi, dword [eax + 0xfc]
test edi, edi
je 0x4ec430
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], eax
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4ec402
push ecx
call dword [0x5350b8]
mov eax, dword [esp + 0x34]
add esp, 4
mov edx, edi
mov ecx, eax
call fcn.0043acb0
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4ec420
push eax
call dword [0x5350c0]
add esp, 4
push dword [esp + 0x38]
call fcn.00465c30
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [eax + 0xfc], 0
test esi, esi
je 0x4ec6dc
push esi
push dword [esp + 0x64]
call fcn.004669e0
push dword [esp + 0x30]
call fcn.0043abf0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0051023c
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x24]
mov ecx, dword [eax + 0x24]
mov edx, dword [edi + 0x14]
call fcn.004daea0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ec3c2
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x68]
push dword [esp + 0x64]
mov eax, dword [eax + 0x14]
call eax
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4ec69a
nop dword [eax + eax]
mov ecx, dword [esp + 0x40]
xor edi, edi
mov esi, 0x7fffffff
test ecx, ecx
jle 0x4ec691
mov eax, dword [esp + 0x88]
mov edx, ecx
nop dword [eax]
cmp dword [eax], 0
je 0x4ec503
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
cmp ecx, esi
jge 0x4ec503
mov esi, ecx
mov edi, eax
add eax, 0xc
sub edx, 1
jne 0x4ec4f0
mov dword [esp + 0x20], edi
test edi, edi
je 0x4ec691
mov ecx, dword [edi]
mov al, byte [ecx]
test al, 0xfe
jne 0x4ec523
mov dword [edi], edx
jmp 0x4ec54e
test al, al
jns 0x4ec538
lea edx, [esp + 0x38]
call fcn.004d08d0
mov ecx, dword [edi]
mov edx, dword [esp + 0x38]
jmp 0x4ec544
movzx edx, al
mov eax, 1
mov dword [esp + 0x38], edx
add eax, ecx
mov dword [edi], eax
lea eax, [edx - 2]
add dword [edi + 4], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
cmp dword [esp + 0x44], esi
jge 0x4ec588
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x64]
mov eax, dword [edi + 0x14]
call eax
add esp, 0x18
test eax, eax
je 0x4ec556
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x4ec67a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub eax, ecx
sub edi, dword [esp + 0x88]
push eax
mov eax, 0x2aaaaaab
imul edi
push ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push dword [esp + 0x38]
lea eax, [esp + 0xa8]
push str._d__d__d__d
push eax
push 0x40
call fcn.0043d660
lea esi, [esp + 0xb4]
add esp, 0x1c
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ec5e0
mov eax, dword [esp + 0x34]
sub esi, ecx
mov edi, dword [esp + 0x30]
add eax, esi
mov dword [esp + 0x14], eax
inc eax
cmp eax, edi
jl 0x4ec63c
mov eax, edi
cdq
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
adc ecx, edx
add edi, 0x64
adc ecx, 0
mov dword [esp + 0x20], ecx
call fcn.004cbab0
test eax, eax
jne 0x4ec673
push dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push edi
call fcn.0043ad10
add esp, 8
test eax, eax
je 0x4ec673
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
jmp 0x4ec640
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x98]
push esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], 0
mov byte [ecx + eax], 0
jmp 0x4ec4d0
mov eax, 7
jmp 0x4ec696
cmp eax, 0x65
jne 0x4ec696
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x28], 0
mov ecx, 0x10b
cmove eax, ecx
jmp 0x4ec696
mov eax, 0x65
mov edi, dword [esp + 0x18]
push dword [esp + 0x50]
xor esi, esi
cmp eax, 0x65
cmovne esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], esi
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
jne 0x4ec3c2
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
cmp edx, dword [eax + 0x18]
jge 0x4ec3c2
mov ecx, dword [esp + 0x70]
jmp 0x4ec250
mov eax, dword [esp + 0x34]
push fcn.0043abf0
dec eax
push eax
push dword [esp + 0x30]
push dword [esp + 0x6c]
call fcn.004666f0
mov ecx, dword [esp + 0xec]
add esp, 0x10
pop edi
pop esi
xor ecx, esp
call fcn.0051023c
mov esp, ebp
pop ebp
ret