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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40dd15
lea eax, [ecx - 0x66]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x58]
add eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x5c]
adc ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x10]
mov esi, dword [edi + 0x30]
test edx, edx
je 0x40dd3a
push 0
push ecx
push eax
push esi
push dword [edi + 0x1c]
call edx
add esp, 0x14
jmp 0x40dd53
xor edx, edx
cmp edx, ecx
jne 0x40dd50
push edx
push eax
mov eax, dword [edi + 0x28]
push esi
push dword [edi + 0x1c]
call eax
add esp, 0x10
jmp 0x40dd53
or eax, 0xffffffff
mov esi, eax
neg esi
sbb esi, esi
test eax, eax
jne 0x40dd88
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0040ccc0
add esp, 4
test eax, eax
je 0x40dd78
or esi, 0xffffffff
jmp 0x40dd88
cmp dword [esp + 0x18], 0x2014b50
mov eax, 0xffffff99
cmovne esi, eax
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0040cc20
mov edx, dword [edi + 0x30]
or ecx, 0xffffffff
add esp, 4
test eax, eax
lea eax, [esp + 0x34]
cmovne esi, ecx
mov ecx, edi
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x38]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x40]
push eax
call fcn.0040ccc0
mov edi, dword [esp + 0x44]
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
xor edx, edx
shrd edi, edx, 0x10
mov eax, edi
shr edx, 0x10
and eax, 0x1f
mov ecx, edi
mov dword [esp + 0x7c], eax
mov eax, edx
shrd ecx, eax, 5
shrd edi, edx, 9
shr eax, 5
and ecx, 0xf
and edi, 0x7f
shr edx, 9
dec ecx
add edi, 0x7bc
xor edx, edx
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x40]
mov eax, edx
mov dword [esp + 0x80], ecx
mov ecx, edi
shrd ecx, eax, 0xb
shr eax, 0xb
and ecx, 0x1f
mov eax, edi
mov dword [esp + 0x78], ecx
shrd eax, edx, 5
and edi, 0x1f
and eax, 0x3f
shr edx, 5
add edi, edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
lea eax, [esp + 0x44]
mov edi, dword [esp + 0x14]
mov ecx, edi
push eax
mov edx, dword [edi + 0x30]
call fcn.0040ccc0
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0xc]
push eax
call fcn.0040ccc0
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x4c], 0
mov eax, 0xffffffff
mov ecx, edi
cmovne esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
lea eax, [esp + 0xc]
push eax
call fcn.0040ccc0
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov dword [esp + 0x54], 0
mov eax, 0xffffffff
mov ecx, edi
cmovne esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x58]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x60]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x64]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x68]
push eax
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.0040ccc0
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0xc]
push eax
call fcn.0040ccc0
mov ecx, dword [esp + 0x5c]
add esp, 4
test eax, eax
mov dword [esp + 0x2c], 0
mov eax, 0xffffffff
cmovne esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x40e0dd
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40e040
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jae 0x40e000
mov byte [ecx + edx], 0
mov edx, ecx
mov dword [esp + 0x10], edx
jmp 0x40e006
mov edx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x40e032
test eax, eax
je 0x40e032
mov eax, dword [edi + 4]
push edx
push dword [ebp + 0xc]
push dword [edi + 0x30]
push dword [edi + 0x1c]
call eax
mov edx, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0xc]
cmp eax, edx
mov eax, 0xffffffff
cmovne esi, eax
sub ecx, edx
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x40e0dd
cmp dword [ebp + 0x14], 0
je 0x40e0dd
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x40e05d
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x40e08f
mov eax, ecx
mov ecx, edi
cdq
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.0040fd20
mov edx, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x5c]
jne 0x40e088
xor ecx, ecx
mov dword [esp + 0xc], ecx
jmp 0x40e08f
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
test eax, eax
je 0x40e0cf
test edx, edx
je 0x40e0cf
push dword [esp + 0x10]
mov eax, dword [edi + 4]
push dword [ebp + 0x14]
push dword [edi + 0x30]
push dword [edi + 0x1c]
call eax
mov edx, dword [esp + 0x20]
add esp, 0x10
xor ecx, ecx
cmp eax, edx
jne 0x40e0ba
test ecx, ecx
je 0x40e0bd
or esi, 0xffffffff
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0xc]
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x5c]
jmp 0x40e0e3
mov edx, dword [esp + 0x10]
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x5c]
jmp 0x40e0e3
mov eax, dword [esp + 0x5c]
add ecx, eax
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x40e344
test eax, eax
je 0x40e271
sub ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ecx
je 0x40e128
mov eax, ecx
mov ecx, edi
cdq
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.0040fd20
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x5c]
jne 0x40e125
mov dword [esp + 0xc], esi
jmp 0x40e128
or esi, 0xffffffff
test eax, eax
je 0x40e269
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040cc20
mov edx, dword [edi + 0x30]
add esp, 4
test eax, eax
mov ecx, edi
mov eax, 0xffffffff
cmovne esi, eax
lea eax, [esp + 0x10]
push eax
call fcn.0040cc20
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x1c], 1
jne 0x40e213
cmp dword [esp + 0x50], eax
jne 0x40e19c
cmp dword [esp + 0x54], 0
jne 0x40e19c
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.0040cdf0
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x48], 0xffffffff
jne 0x40e1c6
cmp dword [esp + 0x4c], 0
jne 0x40e1c6
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.0040cdf0
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x14], 0xffffffff
jne 0x40e1f8
cmp dword [esp + 0x2c], 0
jne 0x40e1f8
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0040cdf0
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x64], 0xffffffff
jne 0x40e250
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0040ccc0
add esp, 4
jmp 0x40e249
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x30]
test eax, eax
je 0x40e230
push 1
push 0
push dword [esp + 0x18]
push ecx
push dword [edi + 0x1c]
call eax
add esp, 0x14
jmp 0x40e249
mov eax, dword [esp + 0x10]
xor edx, edx
test edx, edx
jne 0x40e24d
push 1
push eax
mov eax, dword [edi + 0x28]
push ecx
push dword [edi + 0x1c]
call eax
add esp, 0x10
test eax, eax
je 0x40e250
or esi, 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 4
add ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x5c]
jb 0x40e130
test esi, esi
jne 0x40e344
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x40e2ee
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x60]
cmp eax, ecx
jae 0x40e28d
mov byte [eax + edx], 0
mov dword [esp + 0x10], eax
jmp 0x40e291
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e2bb
cdq
mov ecx, edi
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.0040fd20
mov ecx, dword [ebp + 0x20]
add esp, 0xc
mov edx, dword [ebp + 0x1c]
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x60], 0
jbe 0x40e2ea
test ecx, ecx
je 0x40e2ea
push dword [esp + 0x10]
mov eax, dword [edi + 4]
push edx
push dword [edi + 0x30]
push dword [edi + 0x1c]
call eax
add esp, 0x10
cmp eax, dword [esp + 0x10]
je 0x40e2ea
or esi, 0xffffffff
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40e344
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40e330
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esp + 0x70]
movups xmmword [eax + 0x40], xmm0
movq xmm0, qword [esp + 0x80]
movq qword [eax + 0x50], xmm0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40e344
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret