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

Disassembly:
sub esp, 0x7c
mov eax, dword [0x43c51c]
xor eax, esp
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x84]
push esi
mov esi, dword [esp + 0x8c]
push edi
mov edi, dword [esp + 0x88]
mov eax, dword [esi + 8]
dec eax
cmp eax, 0xe
ja case.0x40dc42.5
jmp dword [eax*4 + 0x40e320]
mov eax, dword [esi]
mov esi, dword [edx]
mov edx, eax
mov dword [esp + 0x50], eax
shr eax, 0x1f
mov dword [esp + 0x38], eax
test al, al
je 0x40dc64
neg edx
mov dword [esp + 0x50], edx
mov eax, edx
mov dword [esp + 0x78], 0
or eax, 1
bsr ecx, eax
mov eax, edx
add eax, dword [ecx*8 + 0x42dda8]
mov eax, 0
adc eax, dword [ecx*8 + 0x42ddac]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
movzx eax, cl
add eax, dword [esp + 0x3c]
add edx, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], edx
cmp eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
jb 0x40dd0a
mov edx, dword [esp + 0x2c]
cmp edx, eax
mov dword [esp + 0x38], eax
cmova edx, eax
mov eax, edx
mov dword [esp + 0x2c], edx
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x50]
je 0x40dd0a
test cl, cl
je 0x40dce7
mov byte [eax], 0x2d
inc eax
push dword [esp + 0x78]
push edx
push eax
call fcn.00407b20
add esp, 0xc
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
test cl, cl
je 0x40dd39
mov ecx, dword [esp + 0x3c]
inc ecx
cmp ecx, dword [esp + 0x38]
jbe 0x40dd2b
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x3c]
mov byte [ecx + eax], 0x2d
inc dword [esi + 8]
push dword [esp + 0x78]
lea eax, [esp + 0x78]
push edx
push eax
call fcn.00407b20
add esp, 0xc
lea eax, [esp + 0x74]
mov ecx, esi
push edx
push eax
call fcn.00405d80
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
push dword [esi]
push dword [edx]
push edi
call fcn.0040e4e0
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
push dword [esi + 4]
push dword [esi]
push dword [edx]
push edi
call fcn.0040f0b0
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
push dword [esi + 4]
push dword [esi]
push dword [edx]
push edi
call fcn.0040f200
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov al, byte [esi]
and dword [esp + 0x68], 0xffffff80
and byte [esp + 0x6c], 0xfc
push ecx
mov byte [esp + 0x3c], al
mov eax, esp
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xffffffff
mov byte [esp + 0x68], 0
mov dword [esp + 0x71], 0x20
mov byte [esp + 0x75], 1
mov dword [eax], 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x40]
push dword [edx]
push edi
call fcn.0040f2f0
add esp, 0x14
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov al, byte [esi]
mov esi, dword [edx]
mov byte [esp + 0x43], al
mov ecx, dword [esi + 8]
lea edx, [ecx + 1]
cmp edx, dword [esi + 0xc]
jbe 0x40de52
mov eax, dword [esi]
mov ecx, esi
push edx
call dword [eax]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dl, byte [esp + 0x43]
mov byte [ecx + eax], dl
mov eax, edi
inc dword [esi + 8]
mov dword [edi], esi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
movss xmm0, dword [esi]
xorps xmm1, xmm1
mov esi, dword [edx]
movss dword [esp + 0x78], xmm0
mov eax, dword [esp + 0x78]
push ecx
movss dword [esp + 0x3c], xmm0
mov dword [esp + 0x30], eax
movups xmmword [esp + 0xc], xmm1
movups xmmword [esp + 0x1c], xmm1
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdsign]
movss xmm0, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x40ded3
xorps xmm0, xmmword [0x42f840]
mov dword [esp + 0x20], 1
movups xmm1, xmmword [esp + 0x18]
movss dword [esp + 0x78], xmm0
movups xmmword [esp + 8], xmm1
mov eax, dword [esp + 0x2c]
and eax, 0x7f800000
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x2000
mov dword [esp + 0x70], 0x100
cmp eax, 0x7f800000
jne 0x40df48
movups xmm0, xmmword [esp + 0x5c]
lea eax, [esp + 0x18]
fld dword [esp + 0x78]
push eax
sub esp, 0x18
mov eax, esp
push ecx
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x8c]
movq qword [eax + 0x10], xmm0
fstp dword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__fdclass
add esp, 4
jmp 0x40e156
push ecx
movss dword [esp], xmm0
call fcn.0040cc40
movups xmm0, xmmword [esp + 0xc]
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x64]
push eax
push esi
push edi
call fcn.004066b0
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
movsd xmm0, qword [esi]
sub esp, 8
mov esi, dword [edx]
xorps xmm1, xmm1
movsd qword [esp + 0x7c], xmm0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp + 0x20], xmm1
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dsign]
movsd xmm0, qword [esp + 0x30]
add esp, 8
test eax, eax
je 0x40e000
xorps xmm0, xmmword [0x42f830]
mov dword [esp + 0x20], 1
movups xmm1, xmmword [esp + 0x18]
movsd qword [esp + 0x74], xmm0
movups xmmword [esp + 8], xmm1
mov eax, dword [esp + 0x38]
and eax, 0x7ff00000
mov dword [esp + 0x5c], 0
cmp eax, 0x7ff00000
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x2000
mov dword [esp + 0x70], 0x100
jne 0x40e17e
movups xmm0, xmmword [esp + 0x5c]
push eax
fld qword [esp + 0x78]
sub esp, 0x18
mov eax, esp
sub esp, 8
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x90]
movq qword [eax + 0x10], xmm0
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__dclass
jmp 0x40e153
movsd xmm0, qword [esi]
sub esp, 8
mov esi, dword [edx]
xorps xmm1, xmm1
movsd qword [esp + 0x7c], xmm0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
movups xmmword [esp + 0x10], xmm1
movups xmmword [esp + 0x20], xmm1
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__ldsign]
movsd xmm0, qword [esp + 0x30]
add esp, 8
test eax, eax
je 0x40e0e4
xorps xmm0, xmmword [0x42f830]
mov dword [esp + 0x20], 1
movups xmm1, xmmword [esp + 0x18]
movsd qword [esp + 0x74], xmm0
movups xmmword [esp + 8], xmm1
mov eax, dword [esp + 0x38]
and eax, 0x7ff00000
mov dword [esp + 0x5c], 0
cmp eax, 0x7ff00000
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x2000
mov dword [esp + 0x70], 0x100
jne 0x40e17e
movups xmm0, xmmword [esp + 0x5c]
push eax
fld qword [esp + 0x78]
sub esp, 0x18
mov eax, esp
sub esp, 8
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x90]
movq qword [eax + 0x10], xmm0
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll__ldclass
add esp, 8
cmp ax, 1
sete al
movzx eax, al
push eax
push esi
push edi
call fcn.00410a90
add esp, 0x28
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
sub esp, 8
movsd qword [esp], xmm0
push eax
call fcn.0040cfb0
add esp, 0xc
movups xmm0, xmmword [eax]
push 0
sub esp, 0x10
mov eax, esp
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [eax], xmm0
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x5c]
push eax
push esi
push edi
call fcn.00406bb0
add esp, 0x24
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov eax, dword [esi]
mov esi, dword [edx]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40e1fb
push str.string_pointer_is_null
call fcn.00422450
add esp, 4
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e200
sub ecx, edx
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx]
mov ecx, esi
push eax
push edx
call fcn.00405d80
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov esi, dword [edx]
add eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.00405d80
mov dword [edi], esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
and dword [esp + 0x68], 0xffffff80
lea eax, [esp + 0x5c]
and byte [esp + 0x6c], 0xfc
push eax
push dword [esi]
mov dword [esp + 0x64], 0
push dword [edx]
mov dword [esp + 0x6c], 0xffffffff
push edi
mov byte [esp + 0x74], 0
mov dword [esp + 0x7d], 0x20
mov byte [esp + 0x81], 1
call fcn.004111a0
add esp, 0x10
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov eax, dword [edx]
movups xmm0, xmmword [edx + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
push eax
push dword [esi]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x68], xmm0
call ecx
mov eax, dword [esp + 0x60]
add esp, 0xc
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret
mov eax, dword [edx]
mov ecx, dword [esp + 0x80]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00427b79
add esp, 0x7c
ret