Function at 0x40d410
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 0x40d435
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 0x40d45a
push 0
push ecx
push eax
push esi
push dword [edi + 0x1c]
call edx
add esp, 0x14
jmp 0x40d473
xor edx, edx
cmp edx, ecx
jne 0x40d470
push edx
push eax
mov eax, dword [edi + 0x28]
push esi
push dword [edi + 0x1c]
call eax
add esp, 0x10
jmp 0x40d473
or eax, 0xffffffff
mov esi, eax
neg esi
sbb esi, esi
test eax, eax
jne 0x40d4a8
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0040c3f0
add esp, 4
test eax, eax
je 0x40d498
or esi, 0xffffffff
jmp 0x40d4a8
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.0040c350
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.0040c350
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.0040c350
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.0040c350
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.0040c3f0
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.0040c3f0
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.0040c3f0
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.0040c3f0
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.0040c350
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.0040c350
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.0040c350
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.0040c350
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.0040c350
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.0040c3f0
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.0040c3f0
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 0x40d7fd
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40d760
mov eax, dword [ebp + 0x10]
cmp ecx, eax
jae 0x40d720
mov byte [ecx + edx], 0
mov edx, ecx
mov dword [esp + 0x10], edx
jmp 0x40d726
mov edx, eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x40d752
test eax, eax
je 0x40d752
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 0x40d7fd
cmp dword [ebp + 0x14], 0
je 0x40d7fd
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x40d77d
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x40d7af
mov eax, ecx
mov ecx, edi
cdq
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.00407370
mov edx, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x5c]
jne 0x40d7a8
xor ecx, ecx
mov dword [esp + 0xc], ecx
jmp 0x40d7af
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
test eax, eax
je 0x40d7ef
test edx, edx
je 0x40d7ef
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 0x40d7da
test ecx, ecx
je 0x40d7dd
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 0x40d803
mov edx, dword [esp + 0x10]
sub eax, edx
add ecx, eax
mov eax, dword [esp + 0x5c]
jmp 0x40d803
mov eax, dword [esp + 0x5c]
add ecx, eax
mov dword [esp + 0xc], ecx
test esi, esi
jne 0x40da64
test eax, eax
je 0x40d991
sub ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], ecx
je 0x40d848
mov eax, ecx
mov ecx, edi
cdq
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.00407370
add esp, 0xc
test eax, eax
mov eax, dword [esp + 0x5c]
jne 0x40d845
mov dword [esp + 0xc], esi
jmp 0x40d848
or esi, 0xffffffff
test eax, eax
je 0x40d989
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0040c350
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.0040c350
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x1c], 1
jne 0x40d933
cmp dword [esp + 0x50], eax
jne 0x40d8bc
cmp dword [esp + 0x54], 0
jne 0x40d8bc
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call fcn.0040c520
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x48], 0xffffffff
jne 0x40d8e6
cmp dword [esp + 0x4c], 0
jne 0x40d8e6
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.0040c520
add esp, 4
test eax, eax
mov eax, 0xffffffff
cmovne esi, eax
cmp dword [esp + 0x14], 0xffffffff
jne 0x40d918
cmp dword [esp + 0x2c], 0
jne 0x40d918
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0040c520
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 0x40d970
mov edx, dword [edi + 0x30]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.0040c3f0
add esp, 4
jmp 0x40d969
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x30]
test eax, eax
je 0x40d950
push 1
push 0
push dword [esp + 0x18]
push ecx
push dword [edi + 0x1c]
call eax
add esp, 0x14
jmp 0x40d969
mov eax, dword [esp + 0x10]
xor edx, edx
test edx, edx
jne 0x40d96d
push 1
push eax
mov eax, dword [edi + 0x28]
push ecx
push dword [edi + 0x1c]
call eax
add esp, 0x10
test eax, eax
je 0x40d970
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 0x40d850
test esi, esi
jne 0x40da64
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x40da0e
mov ecx, dword [ebp + 0x20]
mov eax, dword [esp + 0x60]
cmp eax, ecx
jae 0x40d9ad
mov byte [eax + edx], 0
mov dword [esp + 0x10], eax
jmp 0x40d9b1
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d9db
cdq
mov ecx, edi
push 1
push edx
mov edx, dword [edi + 0x30]
push eax
call fcn.00407370
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 0x40da0a
test ecx, ecx
je 0x40da0a
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 0x40da0a
or esi, 0xffffffff
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x40da64
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40da50
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 0x40da64
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