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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x1f8
mov eax, dword [0x10163040]
xor eax, esp
mov dword [esp + 0x1f4], eax
push esi
mov esi, edx
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x460], 0
jge 0x100395c4
test byte [esi], 2
lea eax, [esp + 0x80]
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x88], 0
mov dword [esp + 0x98], 0
vmovss dword [esp + 0x8c], xmm0
vmovss dword [esp + 0x90], xmm0
vmovss dword [esp + 0x94], xmm0
push eax
mov dword [esp + 0x84], 0x1b00d9
je 0x100395b5
mov dword [esp + 0x84], 0x20002
call fcn.10038a70
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x460], eax
cmp dword [esi + 0x464], 0
jge 0x10039637
test byte [esi], 4
jne 0x10039637
vxorps xmm0, xmm0, xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x84], 0xffffffff
push eax
lea ecx, [esi + 0x40]
mov dword [esp + 0x8c], 0
vmovss dword [esp + 0x90], xmm0
vmovss dword [esp + 0x94], xmm0
vmovss dword [esp + 0x98], xmm0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x84], 0x400041
call fcn.10038a70
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x464], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esp + 0x40], edx
vxorps xmm0, xmm0, xmm0
vmovups xmmword [esi + 0x24], xmm0
test ecx, ecx
je 0x1003967f
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039675
dec dword [eax + 0x36c]
push ecx
call edx
mov edx, dword [esp + 0x44]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003969b
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039695
dec dword [eax + 0x36c]
push ecx
call edx
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x12], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], edx
test ecx, ecx
jle 0x10039707
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x10039707
mov ecx, dword [0x1028f9e0]
test ecx, ecx
je 0x100396f6
inc dword [ecx + 0x36c]
imul eax, eax, 0x54
push eax
call edx
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x64], eax
test eax, eax
jle 0x10039744
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x10039744
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039732
inc dword [eax + 0x36c]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x50], eax
mov edi, eax
imul ecx, dword [esp + 0x5c], 0x54
push ecx
push 0
push dword [esp + 0x4c]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x70]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x38], 0
cmp dword [esi + 0x4c], 0
jle 0x100398a9
mov esi, dword [esp + 0x44]
xor edx, edx
mov ecx, dword [esp + 0x1c]
add esi, 0x34
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], esi
nop word [eax + eax]
mov eax, dword [ecx + 0x54]
add eax, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [esp + 0x3c], eax
cmp dword [ecx + 0x34], edx
jle 0x10039903
mov edi, dword [esp + 0x48]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x100397ef
mov ecx, dword [esp + 0x1c]
or esi, esi
mov eax, dword [eax + 0x74]
mov ecx, dword [ecx + 0x3c]
cmp eax, dword [ecx + edx*4]
jne 0x100397df
mov dword [edi - 4], edx
mov esi, edx
mov eax, dword [esp + 0x1c]
inc edx
mov ecx, esi
cmp edx, dword [eax + 0x34]
mov eax, dword [esp + 0x3c]
jl 0x100397c2
mov edi, dword [esp + 0x50]
cmp ecx, 0xffffffff
je 0x10039903
push dword [ebp + 8]
mov esi, dword [esp + 0x4c]
push eax
push dword [esp + 0x34]
lea ecx, [esi - 0x34]
call fcn.10038ca0
test al, al
je 0x10039903
mov ecx, dword [esp + 0x3c]
mov edx, 0x10159048
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [esp + 0x1b], al
mov eax, dword [esi - 4]
lea eax, [eax + eax*2]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1003986b
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1003986b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10039850
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
inc dword [edi + edx*8]
mov ecx, dword [esi]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
inc eax
mov dword [edi + edx*8 + 4], ecx
add esi, 0x54
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
add edx, 0x78
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
cmp eax, dword [ecx + 0x4c]
jl 0x100397a0
mov eax, dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x24], esi
test eax, eax
jle 0x10039c55
mov edx, dword [esp + 0x44]
add edx, 0x44
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edx
nop word [eax + eax]
mov eax, dword [edx - 0x14]
mov esi, dword [edx - 0x10]
add esi, 0x20
sar esi, 5
lea ecx, [eax + eax*2]
mov eax, dword [edx - 4]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
cmp esi, eax
jle 0x10039932
test eax, eax
je 0x1003990d
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x2c]
jmp 0x10039912
mov byte [esp + 0x1b], 0
jmp 0x1003a8c1
mov ecx, 8
add edx, 0xfffffff8
mov eax, esi
cmp ecx, esi
mov dword [esp + 0x2c], edx
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.100316f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
jmp 0x10039935
lea eax, [edx - 8]
mov dword [eax], esi
lea eax, [esi*4]
push eax
push 0
push dword [edx]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x3c]
add esp, 0xc
lea edx, [ecx*8 + 0xc]
add edx, edi
mov dword [esp + 0x3c], edx
cmp dword [edx], 0
jne 0x100399be
mov esi, dword [edi + ecx*8 + 4]
mov eax, dword [edx + 4]
add esi, 0x20
sar esi, 5
mov dword [esp + 0x2c], eax
cmp esi, eax
jle 0x100399a3
test eax, eax
je 0x1003998b
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x2c]
jmp 0x10039990
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.100316f0
mov edx, dword [esp + 0x3c]
lea eax, [esi*4]
mov dword [edx], esi
push eax
push 0
push dword [edx + 8]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0x18]
mov dword [esp + 0x48], eax
cmp word [eax], 0
je 0x10039a9a
movzx esi, word [eax + 2]
test si, si
je 0x10039a96
movzx edi, word [eax]
cmp edi, esi
ja 0x10039a7d
nop dword [eax + eax]
mov edx, dword [esp + 0x50]
mov esi, edi
mov eax, edi
sar esi, 5
and eax, 0x1f
mov dword [esp + 0x2c], eax
mov ecx, dword [edx + ecx*8 + 0x14]
mov edx, 1
shlx eax, edx, eax
mov edx, dword [esp + 0x20]
test dword [ecx + esi*4], eax
jne 0x10039a68
push edi
push dword [edx - 0x2c]
call fcn.100c2200
add esp, 8
test eax, eax
je 0x10039a64
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x24]
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
inc edi
mov ecx, dword [esp + 0x30]
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x100399f0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x48], eax
cmp word [eax], 0
jne 0x100399d3
mov edi, dword [esp + 0x50]
add edx, 0x54
sub dword [esp + 0x38], 1
mov dword [esp + 0x20], edx
jne 0x100398d0
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
add esi, 0x50
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], eax
nop
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x10039b28
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039ad7
inc dword [eax + 0x36c]
mov eax, edi
shl eax, 5
push eax
vzeroupper
call dword [esp + 0x38]
mov edx, dword [esi]
add esp, 4
mov dword [esp + 0x2c], eax
test edx, edx
je 0x10039b23
mov ecx, dword [esi - 8]
shl ecx, 5
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x10039b17
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039b17
dec dword [eax + 0x36c]
push ecx
call dword [esp + 0x44]
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esi], eax
mov dword [esi - 4], edi
mov edx, dword [esi - 0xc]
mov ecx, edx
mov eax, dword [esi - 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], edx
lea eax, [edx + eax*4]
mov dword [esp + 0x7c], eax
cmp edx, eax
jae 0x10039c03
mov edx, dword [ecx]
mov dword [esp + 0x58], edx
test edx, edx
je 0x10039bf4
xor edi, edi
nop word [eax + eax]
mov eax, 1
shlx eax, eax, edi
test edx, eax
je 0x10039be6
mov eax, ecx
mov ecx, dword [esi - 8]
sub eax, dword [esp + 0x2c]
shl eax, 3
and eax, 0xffffffe0
add eax, edi
vpxor xmm0, xmm0, xmm0
movzx eax, ax
vmovdqu ymmword [esp + 0x80], ymm0
mov dword [esp + 0x98], eax
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x10039bc6
inc ecx
test eax, eax
je 0x10039bac
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi - 4]
jmp 0x10039bb1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
vzeroupper
call fcn.1003aa50
mov edx, dword [esp + 0x58]
mov eax, dword [esi - 8]
vmovdqu ymm0, ymmword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
shl eax, 5
add eax, dword [esi]
vmovdqu ymmword [eax], ymm0
inc dword [esi - 8]
mov esi, dword [esp + 0x38]
inc edi
cmp edi, 0x20
jb 0x10039b60
mov eax, dword [esp + 0x7c]
add ecx, 4
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jb 0x10039b47
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10039c39
mov eax, dword [0x1028f9e0]
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
test eax, eax
je 0x10039c27
dec dword [eax + 0x36c]
push ecx
vzeroupper
call dword [esp + 0x44]
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [esp + 0x4c], 1
mov dword [esp + 0x38], esi
jne 0x10039ac0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
jmp 0x10039c5b
xor esi, esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x64], 0
jle 0x10039cbb
mov esi, dword [esp + 0x40]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10039ca7
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039c94
dec dword [eax + 0x36c]
push ecx
vzeroupper
call esi
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x3c], eax
sub edi, 1
jne 0x10039c71
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x50]
test edi, edi
je 0x10039ce1
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039cce
dec dword [eax + 0x36c]
push edi
vzeroupper
call dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x50], 0
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test esi, esi
jle 0x10039d24
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x10039d24
mov ecx, dword [0x1028f9e0]
test ecx, ecx
je 0x10039d0c
inc dword [ecx + 0x36c]
mov edi, dword [esp + 0x34]
shl eax, 4
push eax
vzeroupper
call edi
mov ecx, eax
add esp, 4
mov dword [esp + 0x3c], ecx
jmp 0x10039d28
mov edi, dword [esp + 0x34]
shl esi, 4
push esi
push 0
push ecx
vzeroupper
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039d4f
inc dword [eax + 0x36c]
push 0x40000
call edi
mov ecx, dword [0x1028f9e0]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x10039d6b
inc dword [ecx + 0x36c]
push 0x20
call edi
vmovss xmm0, dword [0x1015f088]
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov dword [esp + 0xc8], eax
xor edi, edi
mov dword [eax], esi
add esp, 4
mov eax, 1
mov dword [esp + 0xc0], 8
mov dword [esp + 0x64], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edi
test eax, eax
jle 0x1003a0b2
mov esi, dword [esp + 0x44]
xor edx, edx
add esi, 0x48
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x20], esi
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x1003a085
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [esp + 0x3c]
mov dword [esi - 0x20], eax
vmovss xmm1, dword [ecx + 0x44]
vucomiss xmm1, xmm0
mov dword [esp + 0x68], edi
lahf
vmovss dword [esp + 0x2c], xmm1
test ah, 0x44
jnp 0x10039e59
mov byte [esp + 0x2b], 1
xor edi, edi
vxorpd xmm0, xmm0, xmm0
mov eax, edi
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, edi
vaddsd xmm0, xmm0, qword [eax*8 + 0x1015f650]
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, xmm1
call fcn.10118c90
vmovss xmm1, dword [esp + 0x2c]
mov edx, 0xff
movzx ecx, al
cmp eax, edx
cmovbe edx, ecx
mov byte [esp + edi + 0xf8], dl
inc edi
cmp edi, 0x100
jb 0x10039e11
jmp 0x10039e5e
mov byte [esp + 0x2b], 0
cmp dword [esi], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
jle 0x1003a085
xor ecx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x70], ecx
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x30]
call fcn.100c2200
add esp, 8
test eax, eax
je 0x1003a060
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.100c2ae0
add esp, 0xc
test eax, eax
jne 0x1003a060
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x38], eax
je 0x10039ed7
push eax
call fcn.100c9740
mov eax, dword [esp + 0x3c]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x10039ee6
push eax
call fcn.100c9840
add esp, 4
mov eax, dword [esp + 0x38]
add eax, 0x18
je 0x1003a060
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [esp + 0x34], eax
call fcn.100c4dc0
add esp, 8
test eax, eax
jne 0x1003a060
mov eax, dword [esi - 0x30]
vxorps xmm0, xmm0, xmm0
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x50]
add ecx, 0x4c
mov dword [edi], eax
mov dword [esp + 0x7c], ecx
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
vcvtsi2ss xmm0, xmm0, eax
vmovss dword [edi + 0x10], xmm0
cmp byte [ecx + 0x12], 7
sete al
mov byte [edi + 0x14], al
test ecx, ecx
je 0x1003a060
mov eax, dword [edi]
imul eax, dword [edi + 4]
mov edx, dword [esp + 0x24]
shl eax, 2
mov dword [esp + 0x58], eax
add eax, edx
cmp eax, 0x40000
jle 0x10039fe3
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x10039fa6
inc dword [eax + 0x36c]
push 0x40000
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xbc]
push eax
call fcn.100314c0
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], ecx
jmp 0x10039feb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xf8]
add ecx, edx
add edx, dword [esp + 0x58]
mov dword [esp + 0x24], edx
xor edx, edx
cmp byte [esp + 0x2b], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [esp + 0x88]
call fcn.10038ea0
mov eax, dword [esp + 0x78]
movzx ecx, word [edi]
movzx edx, ax
mov eax, dword [esi - 0x20]
add cx, dx
mov esi, dword [esp + 0x30]
mov word [eax + esi + 4], cx
mov esi, dword [esp + 0x20]
movzx ecx, word [edi + 4]
add cx, dx
mov edx, dword [esp + 0x30]
mov eax, dword [esi - 0x20]
mov word [eax + edx + 6], cx
mov eax, dword [esi - 0x20]
movzx ecx, word [eax + edx + 6]
movzx eax, word [eax + edx + 4]
imul ecx, eax
add dword [esp + 0x60], ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
inc eax
add dword [esp + 0x30], 0x10
add ecx, 0x20
mov dword [esp + 0x4c], eax
mov dword [esp + 0x70], ecx
cmp eax, dword [esi]
jl 0x10039e88
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x6c]
add esi, 0x54
vmovss xmm0, dword [0x1015f088]
mov edi, dword [esp + 0x68]
add edx, 0x78
sub dword [esp + 0x54], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x6c], edx
jne 0x10039dd3
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov dword [edi + 0x20], 0
test esi, esi
jg 0x1003a12d
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
ja 0x1003a0e0
vsqrtsd xmm0, xmm0, xmm0
jmp 0x1003a0e5
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvttss2si eax, xmm0
inc eax
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vcomiss xmm0, dword [0x1015f39c]
jb 0x1003a107
mov esi, 0x1000
jmp 0x1003a12d
vcomiss xmm0, dword [0x1015f398]
jb 0x1003a118
mov esi, 0x800
jmp 0x1003a12d
vcomiss xmm0, dword [0x1015f388]
mov esi, 0x200
mov eax, 0x400
cmovae esi, eax
mov eax, edi
xor ecx, ecx
mov dword [eax + 0x1c], esi
sub esi, dword [edi + 0xc]
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x1003a171
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x1003a171
mov ecx, dword [0x1028f9e0]
test ecx, ecx
je 0x1003a160
inc dword [ecx + 0x36c]
shl eax, 3
push eax
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x2c], eax
mov ecx, eax
mov edx, dword [edi + 0x1c]
push esi
push ecx
push ecx
lea ecx, [esp + 0xd4]
call fcn.10039350
mov edi, dword [edi + 0x40]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], edi
test edi, edi
jle 0x1003a1c6
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1003a1c6
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a1b7
inc dword [eax + 0x36c]
shl ecx, 4
push ecx
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
xor esi, esi
add esp, 0xc
cmp dword [eax + 0x40], esi
jle 0x1003a218
mov edx, dword [esp + 0x24]
xor ecx, ecx
add edx, 6
mov edi, eax
nop dword [eax]
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x1c]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x1a]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x1003a1f0
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc8]
push edi
call fcn.10031fd0
add esp, 4
test edi, edi
jle 0x1003a287
mov edx, dword [esp + 0x24]
xor esi, esi
add edx, 0xa
nop dword [eax]
cmp dword [edx + 2], 0
je 0x1003a27c
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 4], ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 6], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub edi, 1
jne 0x1003a240
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1003a2a7
mov ecx, dword [0x1028f9e0]
test ecx, ecx
je 0x1003a29f
dec dword [ecx + 0x36c]
push eax
call dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x1003a317
mov esi, dword [esp + 0x44]
add esi, 0x38
mov dword [esp + 0x68], eax
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x1003a30d
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xc8]
push eax
call fcn.10031fd0
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1003a30d
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0xc], 0
je 0x1003a305
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x20], ecx
cmovge ecx, dword [eax + 0x20]
mov dword [eax + 0x20], ecx
inc edi
add edx, 0x10
cmp edi, dword [esi]
jl 0x1003a2e1
add esi, 0x54
sub dword [esp + 0x68], 1
jne 0x1003a2c0
mov edi, dword [esp + 0x1c]
test byte [edi], 1
mov eax, dword [edi + 0x20]
jne 0x1003a348
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov esi, dword [edi + 0x1c]
inc eax
vmovss xmm2, dword [0x1015f088]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, esi
vdivss xmm1, xmm2, xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
imul esi, eax
cmp byte [esp + 0x1b], 0
vdivss xmm0, xmm2, xmm0
mov dword [edi + 0x20], eax
mov eax, dword [0x1028f9e0]
vmovss dword [edi + 0x24], xmm1
vmovss dword [edi + 0x28], xmm0
je 0x1003a39f
shl esi, 2
test eax, eax
je 0x1003a395
inc dword [eax + 0x36c]
push esi
call dword [esp + 0x38]
mov dword [edi + 0x18], eax
jmp 0x1003a3b1
test eax, eax
je 0x1003a3a9
inc dword [eax + 0x36c]
push esi
call dword [esp + 0x38]
mov dword [edi + 0x14], eax
add esp, 4
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x68]
xor al, al
add esp, 0xc
mov byte [esp + 0x2b], al
test ecx, ecx
jle 0x1003a77b
mov eax, dword [esp + 0x44]
xor esi, esi
add eax, 8
mov dword [esp + 0x7c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], ecx
nop word [eax + eax]
cmp dword [eax + 0x30], 0
je 0x1003a758
mov edx, dword [esp + 0x1c]
vmovss xmm0, dword [eax - 4]
vmovss dword [esp + 0x78], xmm0
vmovss xmm0, dword [eax]
mov ecx, dword [edx + 0x54]
add ecx, esi
mov dword [esp + 0x68], ecx
vmovss dword [esp + 0x74], xmm0
cmp byte [ecx + 0x3c], 0
mov edi, dword [ecx + 0x74]
mov dword [esp + 0x30], edi
jne 0x1003a464
mov ecx, edi
call fcn.10036cb0
mov ecx, dword [esp + 0x68]
mov edx, edi
vmovss xmm0, dword [esp + 0x78]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov eax, edi
xor edx, edx
vmovss dword [edi + 0x48], xmm0
vmovss xmm0, dword [esp + 0x74]
mov word [edi + 0x38], dx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], edx
vmovss dword [eax + 0x4c], xmm0
vmovss xmm0, dword [edi + 0x48]
vaddss xmm0, xmm0, dword [0x1015f018]
inc word [edi + 0x38]
vmovss xmm1, dword [ecx + 0x28]
vcvttss2si eax, xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
mov eax, dword [edx + 0xc]
vaddss xmm2, xmm0, dword [ecx + 0x2c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x38]
vmovss dword [esp + 0x34], xmm1
vmovss dword [esp + 0x60], xmm2
mov dword [esp + 0x78], 0
cmp dword [eax + 0x30], 0
jle 0x1003a749
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x4c], esi
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, esi
add eax, ecx
cmp word [eax + 4], 0
jne 0x1003a4df
cmp word [eax + 6], 0
je 0x1003a721
movzx esi, word [eax + 8]
sub esp, 0x20
add esi, dword [esp + 0xd4]
movzx eax, word [eax + 0xa]
add eax, dword [esp + 0xd4]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [edi + 8]
vaddss xmm3, xmm0, xmm1
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [edi + 0xc]
vaddss xmm4, xmm0, xmm2
vmovss xmm0, dword [edi + 0x10]
vmovss dword [esp + 0x1c], xmm0
vxorps xmm0, xmm0, xmm0
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
add eax, dword [edi + 4]
vcvtsi2ss xmm0, xmm0, eax
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [edx + 0x20]
mov edx, dword [edi]
vdivss xmm0, xmm0, xmm1
vmovss dword [esp + 0x18], xmm0
vxorps xmm0, xmm0, xmm0
vxorps xmm2, xmm2, xmm2
vcvtsi2ss xmm2, xmm2, dword [esi + 0x1c]
mov esi, dword [esp + 0x40]
lea eax, [edx + esi]
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm0, xmm0, xmm2
vmovss dword [esp + 0x14], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [esp + 0x74]
vdivss xmm0, xmm0, xmm1
vmovss dword [esp + 0x10], xmm0
movzx eax, word [edi + 0x18]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, esi
mov esi, dword [esp + 0x50]
mov ecx, esi
vdivss xmm0, xmm0, xmm2
vmovss dword [esp + 0xc], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [edi + 4]
vaddss xmm0, xmm0, xmm4
vmovss dword [esp + 8], xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, edx
vaddss xmm0, xmm0, xmm3
vmovss dword [esp + 4], xmm0
vmovss dword [esp], xmm4
push eax
push dword [esp + 0x8c]
call fcn.10037360
cmp byte [edi + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
lea eax, [eax + eax*4]
je 0x1003a5eb
or dword [ecx + eax*8 - 0x28], 1
mov byte [esp + 0x2b], 1
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi]
mov dword [esp + 0x24], ecx
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x74], eax
imul eax, dword [esp + 0x54]
mov dword [esp + 0x54], 0
test esi, esi
je 0x1003a685
add eax, dword [esp + 0x20]
add eax, esi
cmp dword [edi + 4], 0
mov dword [esp + 0x20], eax
jle 0x1003a711
lea esi, [edx*4]
mov dword [esp + 0x24], esi
lea esi, [ecx + 3]
mov dword [esp + 0x6c], esi
nop dword [eax]
xor ecx, ecx
test edx, edx
jle 0x1003a662
mov edx, dword [esp + 0x20]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x1003a646
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x54]
add eax, dword [esp + 0x74]
inc ecx
add esi, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], esi
cmp ecx, dword [edi + 4]
jl 0x1003a640
jmp 0x1003a711
mov ecx, dword [esp + 0x20]
add ecx, eax
cmp dword [edi + 4], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
lea eax, [eax + ecx*4]
mov dword [esp + 0x20], eax
jle 0x1003a711
mov ecx, dword [esp + 0x74]
shl ecx, 2
mov dword [esp + 0x6c], ecx
lea ecx, [edx*4]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x24]
nop dword [eax]
xor esi, esi
test edx, edx
jle 0x1003a6f0
mov ecx, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + eax]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [esp + 0x74]
cmp esi, edx
jl 0x1003a6d4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x54]
add eax, dword [esp + 0x6c]
inc esi
add ecx, dword [esp + 0xb8]
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp esi, dword [edi + 4]
jl 0x1003a6c0
mov edx, dword [esp + 0x1c]
vmovss xmm2, dword [esp + 0x60]
vmovss xmm1, dword [esp + 0x34]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
inc ecx
add dword [esp + 0x4c], 0x20
add dword [esp + 0x70], 0x10
mov esi, dword [esp + 0x4c]
cmp ecx, dword [eax + 0x30]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x70]
jl 0x1003a4c3
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x20], 0
add eax, 0x54
add esi, 0x78
sub ecx, 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x58], ecx
jne 0x1003a3f0
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x2b]
xor esi, esi
mov byte [edi + 0x12], al
cmp dword [esp + 0x64], esi
jle 0x1003a7b9
mov edi, dword [esp + 0x48]
nop word [eax + eax]
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1003a7a6
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a7a6
dec dword [eax + 0x36c]
push ecx
call dword [esp + 0x44]
inc esi
add esp, 4
cmp esi, dword [esp + 0x64]
jl 0x1003a790
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x1003a82b
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
add esi, 0x18
nop dword [eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1003a7ec
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a7e6
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1003a808
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a802
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x1003a81d
push eax
call fcn.100c1da0
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x5c], 1
jne 0x1003a7d0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x1003a856
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a842
dec dword [eax + 0x36c]
mov esi, dword [esp + 0x40]
push ecx
call esi
add esp, 4
mov dword [esp + 0x44], 0
jmp 0x1003a85a
mov esi, dword [esp + 0x40]
mov ecx, edi
call fcn.100369c0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x1b], 1
test ecx, ecx
je 0x1003a883
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a87d
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1003a8a0
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a89a
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1003a8bd
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a8b7
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x50]
test edi, edi
je 0x1003a8e0
mov eax, dword [0x1028f9e0]
test eax, eax
je 0x1003a8d4
dec dword [eax + 0x36c]
mov esi, dword [esp + 0x40]
push edi
call esi
add esp, 4
jmp 0x1003a8e4
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1003a902
mov ecx, dword [0x1028f9e0]
test ecx, ecx
je 0x1003a8fc
dec dword [ecx + 0x36c]
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1fc]
mov al, byte [esp + 0x1b]
pop edi
pop esi
xor ecx, esp
call fcn.101179c5
mov esp, ebp
pop ebp
ret