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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
mov ebx, ecx
mov dword [esp + 0x38], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004c524f
mov eax, dword [ebx + 0x4b0]
lea esi, [ebx + 0x154]
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [ebp + 8], eax
mov eax, dword [ebx + 0x4b4]
add dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x4b8]
sub dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x4bc]
sub dword [ebp + 0x14], eax
lea eax, [ebx + 0x4a4]
mov ecx, eax
mov dword [esp + 0x2c], eax
call fcn.004bf132
test eax, eax
jne 0x4ec607
mov eax, dword [ebx]
lea esi, [ebp + 8]
push 0
push 0
sub esp, 0x10
mov ecx, ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1ac]
jmp 0x4eca30
mov ecx, dword [ebx + 0x4c8]
test ecx, ecx
je 0x4ec62b
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ec62b
mov ecx, dword [ebx + 0x4c8]
mov eax, dword [ecx]
call dword [eax + 0x58]
sub dword [ebp + 0x10], eax
mov ecx, dword [ebx + 0x4cc]
test ecx, ecx
je 0x4ec64f
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ec64f
mov ecx, dword [ebx + 0x4cc]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub dword [ebp + 0x14], eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub esi, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x4cc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
test ecx, ecx
je 0x4ec68a
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ec68a
mov ecx, dword [ebx + 0x4cc]
call fcn.004db745
add esi, eax
mov dword [esp + 0x30], esi
and dword [esp + 0x24], 0
lea ecx, [ebx + 0x4a4]
xor edi, edi
xor edx, edx
and dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
call fcn.004bf132
test eax, eax
jle 0x4ec77c
xor ebx, ebx
push edx
call fcn.004bf155
mov edi, eax
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0xc8]
test al, al
je 0x4ec756
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x4ec756
push dword [esp + 0x3c]
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x114]
cmp dword [esp + 0x10], 0
jne 0x4ec6f9
inc dword [esp + 0x24]
jmp 0x4ec729
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x68]
cmp dword [esp + 0x10], eax
jge 0x4ec711
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
cmp dword [esp + 0x10], eax
jle 0x4ec729
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call dword [eax + 0x48]
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
lea esi, [eax + 8]
mov eax, dword [edi]
call dword [eax + 0x48]
mov eax, dword [eax]
add eax, dword [esp + 0x10]
add eax, dword [esi]
mov esi, dword [esp + 0x30]
add ebx, eax
inc dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x1c], edx
call fcn.004bf132
cmp edx, eax
jl 0x4ec6b0
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x4c0]
dec ecx
and dword [esp + 0x2c], 0
and dword [esp + 0x1c], 0
imul eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x24]
add edi, eax
mov dword [esp + 0x20], edi
test ecx, ecx
jle 0x4ec7b8
mov eax, esi
sub eax, edi
cdq
idiv ecx
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov dword [esp + 0x2c], eax
mov ecx, dword [ebx + 0x4cc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4ec7e4
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ec7e4
mov ecx, dword [ebx + 0x4cc]
call fcn.004db791
sub dword [esp + 0x18], eax
and dword [esp + 0x38], 0
lea ecx, [ebx + 0x4a4]
xor edx, edx
mov dword [esp + 0x34], edx
call fcn.004bf132
test eax, eax
jle 0x4eca08
push edx
call fcn.004bf155
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0xc8]
test al, al
je 0x4ec9e8
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xf4]
test al, al
je 0x4ec841
mov ebx, dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x34]
mov eax, dword [ebx]
call dword [eax + 0x1a8]
jmp 0x4ec9ec
mov eax, dword [ebx]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebx
call dword [eax + 0x48]
push dword [esp + 0x3c]
sub esi, dword [esp + 0x48]
lea ecx, [esp + 0x14]
mov eax, dword [ebx]
push esi
push ecx
mov ecx, ebx
mov dword [esp + 0x3c], esi
call dword [eax + 0x114]
cmp dword [esp + 0x10], 0
jne 0x4ec8cb
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
cmp ecx, dword [esp + 0x24]
jne 0x4ec899
mov eax, esi
sub eax, dword [esp + 0x4c]
push 0
sub eax, edi
pop ecx
cmovs eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
cmp dword [esp + 0x10], eax
jge 0x4ec8b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
cmp dword [esp + 0x10], eax
jle 0x4ec905
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov dword [esp + 0x10], eax
jmp 0x4ec905
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
cmp dword [esp + 0x10], eax
jge 0x4ec8e3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x4ec8ff
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov ecx, eax
mov dword [esp + 0x10], ecx
sub edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
test eax, eax
jne 0x4ec91e
mov eax, dword [ebp + 0x14]
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
sub eax, dword [ebp + 0xc]
xor ecx, ecx
test eax, eax
cmovs eax, ecx
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
call dword [eax + 0x78]
cmp dword [esp + 0x14], eax
jge 0x4ec941
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
cmp dword [esp + 0x14], eax
jle 0x4ec95f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
sub esp, 0x10
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x54]
add eax, dword [esp + 0x28]
mov esi, dword [esp + 0x58]
mov edi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
add eax, esi
mov dword [esp + 0x64], ecx
lea ecx, [esi + edi]
add eax, edi
mov dword [esp + 0x68], ecx
lea esi, [esp + 0x64]
mov dword [esp + 0x70], eax
mov edi, esp
mov eax, dword [ebx]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x34]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov esi, dword [ebx + 0x4c0]
lea eax, [esi + edx]
add eax, ecx
add eax, dword [esp + 0x44]
add dword [esp + 0x18], eax
lea eax, [edx + ecx]
add eax, dword [esp + 0x44]
add dword [esp + 0x1c], eax
lea eax, [esi + edx]
mov esi, dword [esp + 0x30]
add eax, ecx
sub esi, eax
jmp 0x4ec9ec
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
lea ecx, [ebx + 0x4a4]
inc edx
mov dword [esp + 0x34], edx
call fcn.004bf132
cmp edx, eax
jl 0x4ec802
mov eax, dword [ebx + 0x4c0]
lea esi, [ebp + 8]
imul eax, dword [esp + 0x40]
mov ecx, ebx
mov edx, dword [ebx]
push 0
add eax, dword [esp + 0x20]
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x1ac]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 0x10