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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc4]
mov dword [esp + 0x38], edi
call fcn.0043c970
lea ebx, [edi + 0xcc]
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.0043c970
mov ecx, dword [edi + 0xc4]
mov edx, dword [ecx + 0x228]
test edx, edx
jne 0x40ec64
mov edx, dword [ecx + 0x188]
test edx, edx
jne 0x40ec5b
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x40ec70
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x14], esi
jmp 0x40ec70
mov edx, dword [ecx + 0x1c0]
mov dword [esp + 0x14], edx
mov esi, edx
mov edx, dword [ecx + 0x228]
test edx, edx
jne 0x40ec8d
mov edx, dword [ecx + 0x188]
test edx, edx
jne 0x40ec88
xor edx, edx
jmp 0x40ec93
mov edx, dword [ecx + 0x7c]
jmp 0x40ec93
mov edx, dword [ecx + 0x1bc]
mov ebp, dword [ecx + 0x228]
test ebp, ebp
jne 0x40ecb0
mov ebp, dword [ecx + 0x188]
test ebp, ebp
jne 0x40ecab
xor ecx, ecx
jmp 0x40ecb6
mov ecx, dword [ecx + 0x74]
jmp 0x40ecb6
mov ecx, dword [ecx + 0x1c4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x228]
test ecx, ecx
jne 0x40ecd7
mov ecx, dword [ebx + 0x188]
test ecx, ecx
jne 0x40ecd2
xor ecx, ecx
jmp 0x40ecdd
mov ecx, dword [ebx + 0x74]
jmp 0x40ecdd
mov ecx, dword [ebx + 0x1c4]
mov ebx, dword [edi + 0x310]
mov dword [esp + 0x10], ecx
lea ecx, [edx - 2]
mov dword [esp + 0x2c], ecx
mov ebp, esi
mov ecx, edx
shr ebp, 1
shr ecx, 1
test edx, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x50], ecx
jle 0x40eeea
neg ecx
mov dword [esp + 0x18], ecx
lea ecx, [eax + 2]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax + 4]
mov dword [esp + 0x24], eax
lea eax, [edx - 1]
shr eax, 1
inc eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
lea ecx, [ecx]
test esi, esi
jle 0x40eea9
mov ecx, dword [esp + 0x28]
lea eax, [esi - 1]
shr eax, 1
neg ebp
inc eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
imul eax, dword [esp + 0x58]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0x3ff
shl eax, 2
mov esi, dword [eax + edi + 0x1314]
mov eax, dword [eax + edi + 0x314]
mov dword [esp + 0x4c], eax
imul eax, dword [esp + 0x18]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x48], eax
mov eax, ebp
imul eax, esi
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [esp + 0x3c]
mov edi, eax
mov eax, dword [esp + 0x48]
add eax, edx
sar edi, 0xa
add edi, eax
mov eax, esi
imul eax, dword [esp + 0x18]
cdq
and edx, 0x3ff
add eax, edx
mov esi, eax
mov eax, ebp
imul eax, dword [esp + 0x4c]
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [esp + 0x50]
sar esi, 0xa
sar eax, 0xa
sub esi, eax
add esi, edx
cmp edi, 1
jge 0x40edf3
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
add edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffffe
cmp edi, eax
jl 0x40ee00
sub edi, eax
cmp esi, 1
mov eax, dword [esp + 0x2c]
jge 0x40ee0b
add esi, eax
cmp esi, eax
jle 0x40ee11
sub esi, eax
mov edx, dword [esp + 0x30]
mov eax, esi
imul eax, dword [esp + 0x1c]
lea edi, [edi + edi*2]
add eax, edi
add eax, edx
mov dl, byte [eax]
mov byte [ecx - 2], dl
mov dl, byte [eax + 1]
mov byte [ecx - 1], dl
mov dl, byte [eax + 2]
mov byte [ecx], dl
mov dl, byte [eax + 3]
mov byte [ecx + 1], dl
mov dl, byte [eax + 4]
mov byte [ecx + 2], dl
mov al, byte [eax + 5]
mov edx, dword [esp + 0x30]
mov byte [ecx + 3], al
inc esi
imul esi, dword [esp + 0x1c]
add esi, edi
lea eax, [esi + edx]
mov dl, byte [eax]
mov esi, dword [esp + 0x10]
mov byte [esi + ecx - 2], dl
mov dl, byte [eax + 1]
mov edi, dword [esp + 0x38]
mov byte [esi + ecx - 1], dl
mov dl, byte [eax + 2]
mov byte [ecx + esi], dl
mov dl, byte [eax + 3]
mov byte [ebx - 1], dl
mov dl, byte [eax + 4]
mov byte [ebx], dl
mov al, byte [eax + 5]
mov byte [ebx + 1], al
add dword [esp + 0x20], 8
mov eax, dword [esp + 0x34]
add ebp, 2
add ecx, 6
add ebx, 6
dec eax
mov dword [esp + 0x34], eax
jne 0x40ed50
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ebx, 2
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x40]
lea ecx, [esi*8]
add ebx, ecx
mov ecx, dword [esp + 0x10]
add ecx, ecx
add edx, ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
add edx, ecx
dec eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], eax
jne 0x40ed30
lea ecx, [edi + 0xcc]
call fcn.0043c9e0
mov ecx, dword [edi + 0xc4]
call fcn.0043c9e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4