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

Disassembly:
mov ecx, dword [0x10083558]
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb0]
mov ebx, ecx
push edi
cmp byte [esi + 0x6f], 0
je 0x10040d5a
movups xmm0, xmmword [ebx + 0x48f0]
push esi
movups xmmword [esp + 0x58], xmm0
movups xmm0, xmmword [ebx + 0x4900]
movups xmmword [esp + 0x78], xmm0
movq xmm0, qword [ebx + 0x4910]
movq qword [esp + 0x68], xmm0
call fcn.1003f670
movups xmm0, xmmword [esp + 0x58]
add esp, 4
movups xmmword [ebx + 0x48f0], xmm0
movups xmm0, xmmword [esp + 0x74]
movups xmmword [ebx + 0x4900], xmm0
movq xmm0, qword [esp + 0x64]
movq qword [ebx + 0x4910], xmm0
mov ecx, dword [0x10083558]
mov eax, dword [ebx + 0x3f94]
mov dword [esp + 0x24], eax
cmp byte [eax + 0xb3], 0
jne 0x10040dd7
test dword [esi + 0xc], 0x100000
push 0
je 0x10040d94
mov edi, dword [esp + 0xbc]
push 0
push edi
call fcn.10020b30
mov ebp, eax
push ebp
call fcn.10022b40
add esp, 0x10
jmp 0x10040da9
mov eax, dword [esp + 0xbc]
mov ecx, dword [ecx + 0x3f94]
push eax
call fcn.1001f170
mov ebp, eax
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x10040de4
cmp byte [ecx], 0
jne 0x10040de4
push 8
push 0
lea eax, [esp + 0x6c]
xorps xmm0, xmm0
push ebp
push eax
movups xmmword [esp + 0x74], xmm0
call fcn.100224b0
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa0
ret
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], eax
test eax, 0x100000
je 0x10040e00
mov dword [esp + 0x30], 0
jmp 0x10040e0d
test ecx, ecx
jne 0x10040e0d
or eax, 0x100000
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x10040e3b
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x10040e3b
mov edi, dword [esi + 8]
nop dword [eax]
cmp dword [edi], ebp
je 0x10040e2e
inc eax
add edi, 0x2c
cmp eax, ecx
jl 0x10040e20
jmp 0x10040e3b
mov byte [esp + 0x10], 0
test edi, edi
jne 0x10040f4a
mov ecx, dword [esi]
or eax, 0xffffffff
xorps xmm0, xmm0
mov word [esp + 0xaa], ax
mov word [esp + 0xa8], ax
mov eax, dword [esi + 4]
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x94], xmm0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0xa0], 0xbf800000
mov dword [esp + 0xa4], 0xffffffff
cmp ecx, eax
jne 0x10040f00
lea edi, [ecx + 1]
test eax, eax
je 0x10040eb6
cdq
sub eax, edx
mov edx, dword [esi + 4]
sar eax, 1
add eax, edx
jmp 0x10040ebe
mov edx, dword [esi + 4]
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, edx
jle 0x10040f00
imul eax, edi, 0x2c
push eax
call fcn.100230e0
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0x18], eax
test edx, edx
je 0x10040ef8
imul ecx, dword [esi], 0x2c
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.10023120
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esi]
mov dword [esi + 8], eax
mov dword [esi + 4], edi
movups xmm0, xmmword [esp + 0x84]
mov byte [esp + 0x10], 1
imul eax, ecx, 0x2c
add eax, dword [esi + 8]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x94]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0xa4]
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], 0
inc dword [esi]
imul ecx, dword [esi], 0x2c
mov edi, dword [esi + 8]
add edi, 0xffffffd4
add edi, ecx
mov dword [edi], ebp
mov byte [esi + 0x71], 1
mov ecx, edi
mov eax, 0x2e8ba2e9
sub ecx, dword [esi + 8]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x30], 0
mov word [esi + 0x74], ax
jne 0x10040f76
test byte [esp + 0x14], 1
jne 0x10040f76
xor al, al
jmp 0x10040f78
mov al, 1
push eax
push dword [esp + 0xbc]
lea eax, [esp + 0x5c]
push eax
call fcn.10040bd0
add esp, 0xc
mov dword [edi + 0x1c], 0xbf800000
test byte [ebx + 0x48f0], 1
je 0x10040fac
movss xmm1, dword [ebx + 0x4900]
movss dword [edi + 0x1c], xmm1
jmp 0x10040fb2
movss xmm1, dword [esp + 0x54]
cmp byte [esp + 0x10], 0
movss xmm6, dword [0x10078204]
je 0x10040fcd
movaps xmm0, xmm6
maxss xmm0, xmm1
movss dword [edi + 0x14], xmm0
mov ecx, dword [esp + 0x14]
movss dword [edi + 0x18], xmm1
mov ax, word [esi + 0x72]
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x24]
inc word [esi + 0x72]
inc eax
mov edx, dword [ebx + 0x3f10]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 8]
inc eax
mov dword [esp + 0x38], eax
test cl, 1
je 0x1004101b
test byte [edi + 4], 1
mov byte [esp + 0x11], 1
je 0x10041020
mov byte [esp + 0x11], 0
mov eax, ecx
mov dword [edi + 8], edx
shr eax, 0x15
and eax, 0xffffff01
mov dword [edi + 4], ecx
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x28], eax
jne 0x10041091
mov ecx, dword [esi + 0x8c]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xb8]
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10041060
sub edx, dword [esp + 0x18]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [esi + 0x8c]
call fcn.10030910
movss xmm6, dword [0x10078204]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
test al, al
jne 0x100410c7
cmp dword [esp + 0x38], edx
jge 0x100410b8
test byte [esi + 0xc], 2
je 0x100410b8
cmp dword [esi + 0x18], 0
jne 0x100410b8
cmp dword [esp + 0x20], edx
jge 0x100410b3
cmp dword [esi + 0x14], 0
jne 0x100410b8
mov eax, dword [edi]
mov dword [esi + 0x18], eax
test cl, 2
je 0x100410c7
cmp dword [esi + 0x14], ebp
je 0x100410c7
mov eax, dword [edi]
mov dword [esi + 0x18], eax
cmp dword [esi + 0x1c], ebp
sete cl
mov dword [esp + 0x34], ecx
mov byte [esp + 0x50], cl
jne 0x10041123
mov byte [esi + 0x70], 1
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x38], edx
jge 0x10041154
cmp eax, edx
jge 0x100410f0
cmp byte [esp + 0x10], 0
je 0x10041154
push 8
push 0
lea eax, [esp + 0x6c]
xorps xmm0, xmm0
push ebp
push eax
movups xmmword [esp + 0x74], xmm0
call fcn.100224b0
mov eax, dword [esp + 0x38]
add esp, 0x10
test al, al
je 0x1004132d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xa0
ret
cmp dword [esi + 0x14], 0
jne 0x100410db
mov eax, dword [esp + 0x20]
cmp eax, edx
jge 0x100410df
cmp dword [esi], 1
jne 0x100410df
test byte [esi + 0xc], 2
movzx ecx, cl
mov dword [esp + 0x18], 1
cmove ecx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov byte [esp + 0x50], cl
jmp 0x100410df
cmp dword [esi + 0x14], ebp
jne 0x10041162
mov eax, dword [ebx + 0x3f10]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
movss xmm4, dword [edi + 0x14]
movss xmm1, dword [esi + 0x2c]
movss xmm0, dword [ecx + 0xf8]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [ecx + 0xfc]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [edi + 0x10]
and edx, 0xc0
jne 0x100411b5
subss xmm0, dword [esi + 0x48]
xorps xmm5, xmm5
addss xmm1, xmm5
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
jmp 0x100411bc
xorps xmm2, xmm2
addss xmm1, xmm2
addss xmm0, dword [esi + 0x28]
movss dword [ecx + 0xf8], xmm0
movss dword [ecx + 0xfc], xmm1
movss xmm1, dword [ecx + 0xf8]
movss xmm3, dword [ecx + 0xfc]
movaps xmm2, xmm1
movss dword [esp + 0x3c], xmm1
addss xmm2, xmm4
movss dword [esp + 0x40], xmm3
movaps xmm4, xmm3
addss xmm4, dword [esp + 0x58]
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x48], xmm4
test edx, edx
jne 0x1004127f
movss xmm5, dword [esi + 0x58]
comiss xmm5, xmm1
ja 0x1004121d
comiss xmm2, dword [esi + 0x5c]
jbe 0x1004127f
movss xmm0, dword [esi + 0x5c]
maxss xmm1, xmm5
subss xmm3, xmm6
mov byte [esp + 0x10], 1
push 1
lea eax, [esp + 0x58]
movss dword [esp + 0x58], xmm0
push eax
lea eax, [esp + 0x7c]
movss dword [esp + 0x60], xmm4
push eax
movss dword [esp + 0x80], xmm1
movss dword [esp + 0x84], xmm3
call fcn.10028ae0
movss xmm4, dword [esp + 0x54]
add esp, 0xc
movss xmm2, dword [esp + 0x44]
movss xmm3, dword [esp + 0x40]
movss xmm1, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
jmp 0x10041284
mov byte [esp + 0x10], 0
movss xmm0, dword [ecx + 0x110]
subss xmm2, xmm1
movss dword [esp + 0x74], xmm0
subss xmm4, xmm3
movss xmm0, dword [ecx + 0x114]
lea eax, [esp + 0x64]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [ebx + 0x38e8]
push ecx
movss dword [esp], xmm0
push eax
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0x70], xmm4
call fcn.100229e0
mov eax, dword [esp + 0x2c]
movss xmm0, dword [esp + 0x7c]
push 0
push 0
movss dword [eax + 0x110], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [eax + 0x114], xmm0
lea eax, [esp + 0x4c]
push ebp
push eax
call fcn.100224b0
add esp, 0x18
test al, al
jne 0x1004133c
cmp byte [esp + 0x10], al
je 0x1004130d
call fcn.10028880
mov eax, dword [esp + 0x24]
movss xmm0, dword [esp + 0x20]
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [eax + 0xfc], xmm0
mov al, byte [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
mov eax, dword [esp + 0x28]
mov edx, 0x1000
movzx ecx, al
mov eax, 0x1200
inc ecx
shl ecx, 4
cmp byte [ebx + 0x4c48], 0
cmove eax, edx
or ecx, eax
lea eax, [esp + 0x12]
push ecx
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.10038c70
add esp, 0x14
mov byte [esp + 0x1f], al
test al, al
je 0x1004138a
cmp byte [esp + 0x28], 0
jne 0x1004138a
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
cmp byte [esp + 0x12], 0
je 0x10041409
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x2c]
jl 0x10041409
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.100221a0
add esp, 8
test al, al
je 0x10041409
cmp byte [ebx + 0x4c48], 0
jne 0x10041409
test byte [esi + 0xc], 1
je 0x10041409
movss xmm1, dword [ebx + 0xb0]
xorps xmm2, xmm2
comiss xmm2, xmm1
jbe 0x100413df
movss xmm0, dword [esp + 0x3c]
comiss xmm0, dword [ebx + 0xbc]
ja 0x100413f3
comiss xmm1, xmm2
jbe 0x10041409
movss xmm0, dword [ebx + 0xbc]
comiss xmm0, dword [esp + 0x44]
jbe 0x10041409
push dword [ebx + 0xc0]
push dword [ebx + 0xbc]
push edi
push esi
call fcn.100405d0
add esp, 0x10
cmp byte [esp + 0x12], 0
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x270]
mov dword [esp + 0x2c], eax
jne 0x10041450
cmp byte [esp + 0x13], 0
jne 0x10041450
cmp byte [esp + 0x34], 0
mov ecx, dword [esp + 0x4c]
je 0x1004143f
movzx eax, cl
xor eax, 1
lea eax, [eax*2 + 0x23]
jmp 0x10041455
test cl, cl
mov eax, 0x24
mov edx, 0x21
cmovne eax, edx
jmp 0x10041455
mov eax, 0x22
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.1001eff0
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x40]
call fcn.10040940
push 0
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.10029e40
push 0x20
call fcn.10021b00
add esp, 0x28
test al, al
je 0x100414bb
push 0
push 1
call fcn.100220c0
add esp, 8
test al, al
jne 0x100414af
push 1
call fcn.100222a0
add esp, 4
test al, al
je 0x100414bb
cmp byte [esp + 0x28], 0
jne 0x100414bb
mov eax, dword [edi]
mov dword [esi + 0x18], eax
test byte [esi + 0xc], 8
je 0x100414c6
or dword [esp + 0x14], 4
cmp dword [esp + 0x30], 0
je 0x100414e1
push ebp
push 0
push str.CLOSE
call fcn.1001f270
add esp, 0xc
mov edx, eax
jmp 0x100414e3
xor edx, edx
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0xfffffffe
cmp byte [esp + 0x11], 0
cmovne ecx, eax
lea eax, [esp + 0x11]
push eax
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x48]
push edx
push ebp
push dword [esp + 0xcc]
push dword [esi + 0x80]
push dword [esi + 0x7c]
push ecx
push eax
push dword [esp + 0x54]
call fcn.10041600
add esp, 0x2c
cmp byte [esp + 0x13], 0
je 0x10041575
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10041575
mov byte [eax], 0
mov eax, dword [edi + 4]
test eax, 0x200000
jne 0x10041575
test eax, 0x101
jne 0x1004156b
mov byte [edi + 0x28], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi]
jne 0x10041575
mov dword [edi + 8], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
jmp 0x10041575
mov eax, dword [edi]
cmp dword [esi + 0x1c], eax
je 0x10041575
mov dword [esi + 0x18], eax
cmp byte [esp + 0x10], 0
je 0x10041581
call fcn.10028880
cmp byte [esp + 0x11], 0
mov eax, dword [esp + 0x24]
movss xmm0, dword [esp + 0x20]
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x18]
movss dword [eax + 0xfc], xmm0
je 0x100415e6
cmp dword [ebx + 0x3fd0], ebp
jne 0x100415e6
cmp byte [esp + 0x12], 0
jne 0x100415e6
test byte [esi + 0xc], 0x20
jne 0x100415e6
test byte [edi + 4], 0x10
jne 0x100415e6
mov ebx, dword [esp + 0xb8]
push ebx
push 0
push ebx
call fcn.1001e690
add esp, 8
sub eax, ebx
push eax
push str._.s
call fcn.1002c480
add esp, 0xc
cmp byte [esp + 0x28], 0
je 0x1004132d
mov al, byte [esp + 0x1f]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret