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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
sub esp, 0x1f8
mov eax, dword [0x1015b040]
xor eax, esp
mov dword [esp + 0x1f4], eax
push esi
mov esi, edx
mov dword [esp + 0x24], ecx
push edi
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x460], 0
jge 0x10037084
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 0x10037075
mov dword [esp + 0x84], 0x20002
call fcn.10036510
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x460], eax
cmp dword [esi + 0x464], 0
jge 0x100370f7
test byte [esi], 4
jne 0x100370f7
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.10036510
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 0x1003713f
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037135
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 0x1003715b
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037155
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 + 0x4c], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x34], edx
test ecx, ecx
jle 0x100371c7
cmp ecx, 8
mov eax, ecx
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x100371c7
mov ecx, dword [0x1018bb08]
test ecx, ecx
je 0x100371b6
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 + 0x68], eax
test eax, eax
jle 0x10037204
cmp eax, 8
mov ecx, eax
mov eax, 8
cmovl ecx, eax
test ecx, ecx
jle 0x10037204
mov eax, dword [0x1018bb08]
test eax, eax
je 0x100371f2
inc dword [eax + 0x36c]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call edx
add esp, 4
mov dword [esp + 0x4c], 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 + 0x74]
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 0x10037369
mov esi, dword [esp + 0x44]
xor edx, edx
mov ecx, dword [esp + 0x1c]
add esi, 0x34
mov dword [esp + 0x60], 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 0x100373c3
mov edi, dword [esp + 0x48]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x100372af
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 0x1003729f
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 0x10037282
mov edi, dword [esp + 0x4c]
cmp ecx, 0xffffffff
je 0x100373c3
push dword [ebp + 8]
mov esi, dword [esp + 0x4c]
push eax
push dword [esp + 0x30]
lea ecx, [esi - 0x34]
call fcn.10036740
test al, al
je 0x100373c3
mov ecx, dword [esp + 0x3c]
mov edx, 0x101522e0
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 0x1003732b
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x1003732b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10037310
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 + 0x60]
add edx, 0x78
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x60], edx
cmp eax, dword [ecx + 0x4c]
jl 0x10037260
mov eax, dword [esp + 0x5c]
xor esi, esi
mov dword [esp + 0x2c], esi
test eax, eax
jle 0x10037725
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 + 0x28], eax
cmp esi, eax
jle 0x100373f2
test eax, eax
je 0x100373cd
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x28]
jmp 0x100373d2
mov byte [esp + 0x1b], 0
jmp 0x10038383
mov ecx, 8
add edx, 0xfffffff8
mov eax, esi
cmp ecx, esi
mov dword [esp + 0x28], edx
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.1002f3f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
jmp 0x100373f5
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 0x1003747e
mov esi, dword [edi + ecx*8 + 4]
mov eax, dword [edx + 4]
add esi, 0x20
sar esi, 5
mov dword [esp + 0x28], eax
cmp esi, eax
jle 0x10037463
test eax, eax
je 0x1003744b
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
mov ecx, eax
sar ecx, 1
add ecx, dword [esp + 0x28]
jmp 0x10037450
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.1002f3f0
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 0x1003755a
movzx esi, word [eax + 2]
test si, si
je 0x10037556
movzx edi, word [eax]
cmp edi, esi
ja 0x1003753d
nop dword [eax + eax]
mov edx, dword [esp + 0x4c]
mov esi, edi
mov eax, edi
sar esi, 5
and eax, 0x1f
mov dword [esp + 0x28], 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 0x10037528
push edi
push dword [edx - 0x2c]
call fcn.100bcb70
add esp, 8
test eax, eax
je 0x10037524
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
inc dword [eax - 0xc]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x30]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x2c]
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 0x100374b0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
add eax, 4
mov dword [esp + 0x48], eax
cmp word [eax], 0
jne 0x10037493
mov edi, dword [esp + 0x4c]
add edx, 0x54
sub dword [esp + 0x38], 1
mov dword [esp + 0x20], edx
jne 0x10037390
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x5c]
add edx, 0x50
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
nop
mov esi, dword [edx - 0x18]
cmp esi, dword [edx - 4]
jle 0x100375f4
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037597
inc dword [eax + 0x36c]
mov eax, esi
shl eax, 5
push eax
vzeroupper
call dword [esp + 0x38]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x28], eax
mov edi, dword [edx]
test edi, edi
je 0x100375ef
mov ecx, dword [edx - 8]
shl ecx, 5
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [edx]
test ecx, ecx
je 0x100375df
mov eax, dword [0x1018bb08]
test eax, eax
je 0x100375df
dec dword [eax + 0x36c]
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x24]
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [edx], eax
mov dword [edx - 4], esi
mov esi, dword [edx - 0xc]
mov ecx, esi
mov eax, dword [edx - 0x14]
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], esi
lea eax, [esi + eax*4]
mov dword [esp + 0x7c], eax
cmp esi, eax
jae 0x100376cf
mov esi, dword [ecx]
mov dword [esp + 0x58], esi
test esi, esi
je 0x100376c0
xor edi, edi
mov eax, 1
shlx eax, eax, edi
test esi, eax
je 0x100376b2
mov eax, ecx
lea esi, [edx - 8]
sub eax, dword [esp + 0x28]
mov ecx, dword [esi]
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 [edx - 4]
cmp ecx, eax
jne 0x10037692
inc ecx
test eax, eax
je 0x10037679
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add eax, dword [edx - 4]
jmp 0x1003767e
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
vzeroupper
call fcn.10038510
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
vmovdqu ymm0, ymmword [esp + 0x80]
shl eax, 5
vmovdqu ymmword [ecx + eax], ymm0
inc dword [esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x58]
inc edi
cmp edi, 0x20
jb 0x10037623
mov eax, dword [esp + 0x7c]
add ecx, 4
mov dword [esp + 0x3c], ecx
cmp ecx, eax
jb 0x10037613
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x10037709
mov eax, dword [0x1018bb08]
mov dword [edx - 0x10], 0
mov dword [edx - 0x14], 0
test eax, eax
je 0x100376f3
dec dword [eax + 0x36c]
push ecx
vzeroupper
call dword [esp + 0x44]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [edx - 0xc], 0
add edx, 0x54
sub dword [esp + 0x38], 1
mov dword [esp + 0x20], edx
jne 0x10037580
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
jmp 0x1003772b
xor esi, esi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x68], 0
jle 0x1003778b
mov esi, dword [esp + 0x40]
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10037777
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037764
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 0x10037741
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x100377b1
mov eax, dword [0x1018bb08]
test eax, eax
je 0x1003779e
dec dword [eax + 0x36c]
push edi
vzeroupper
call dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x4c], 0
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test esi, esi
jle 0x100377f4
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x100377f4
mov ecx, dword [0x1018bb08]
test ecx, ecx
je 0x100377dc
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 0x100377f8
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 + 0x2c], eax
mov eax, dword [0x1018bb08]
test eax, eax
je 0x1003781f
inc dword [eax + 0x36c]
push 0x40000
call edi
mov ecx, dword [0x1018bb08]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x1003783b
inc dword [ecx + 0x36c]
push 0x20
call edi
vmovss xmm0, dword [0x10157ec8]
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 + 0x68], eax
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x6c], edi
test eax, eax
jle 0x10037b82
mov esi, dword [esp + 0x44]
xor edx, edx
add esi, 0x48
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x54], esi
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x10037b55
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 + 0x6c], edi
lahf
vmovss dword [esp + 0x28], xmm1
test ah, 0x44
jnp 0x10037929
mov byte [esp + 0x27], 1
xor edi, edi
vxorpd xmm0, xmm0, xmm0
mov eax, edi
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, edi
vaddsd xmm0, xmm0, qword [eax*8 + 0x101584f0]
vcvtsd2ss xmm0, xmm0, xmm0
vmulss xmm0, xmm0, xmm1
call fcn.101135c0
vmovss xmm1, dword [esp + 0x28]
mov edx, 0xff
movzx ecx, al
cmp eax, edx
cmovbe edx, ecx
mov byte [esp + edi + 0xf8], dl
inc edi
cmp edi, 0x100
jb 0x100378e1
jmp 0x1003792e
mov byte [esp + 0x27], 0
cmp dword [esi], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 0
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x78], ecx
jle 0x10037b55
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.100bcb70
add esp, 8
test eax, eax
je 0x10037b30
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.100bd450
add esp, 0xc
test eax, eax
jne 0x10037b30
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [esp + 0x38], eax
je 0x100379a7
push eax
call fcn.100c40b0
mov eax, dword [esp + 0x3c]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x100379b6
push eax
call fcn.100c41b0
add esp, 4
mov eax, dword [esp + 0x38]
add eax, 0x18
je 0x10037b30
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [esp + 0x30], eax
call fcn.100bf730
add esp, 8
test eax, eax
jne 0x10037b30
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 + 0x28]
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 0x10037b30
mov eax, dword [edi]
imul eax, dword [edi + 4]
mov edx, dword [esp + 0x2c]
shl eax, 2
mov dword [esp + 0x58], eax
add eax, edx
cmp eax, 0x40000
jle 0x10037ab3
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037a76
inc dword [eax + 0x36c]
push 0x40000
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0xbc]
push eax
call fcn.1002f1c0
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], ecx
jmp 0x10037abb
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [esp + 0xf8]
add ecx, edx
add edx, dword [esp + 0x58]
mov dword [esp + 0x2c], edx
xor edx, edx
cmp byte [esp + 0x27], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [esp + 0x88]
call fcn.10036940
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 + 0x54]
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 + 0x20], ecx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
inc eax
add dword [esp + 0x30], 0x10
add ecx, 0x20
mov dword [esp + 0x60], eax
mov dword [esp + 0x70], ecx
cmp eax, dword [esi]
jl 0x10037958
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
add esi, 0x54
vmovss xmm0, dword [0x10157ec8]
mov edi, dword [esp + 0x6c]
add edx, 0x78
sub dword [esp + 0x50], 1
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], edx
jne 0x100378a3
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov dword [edi + 0x20], 0
test esi, esi
jg 0x10037bfd
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
ja 0x10037bb0
vsqrtsd xmm0, xmm0, xmm0
jmp 0x10037bb5
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 [0x10158210]
jb 0x10037bd7
mov esi, 0x1000
jmp 0x10037bfd
vcomiss xmm0, dword [0x10158208]
jb 0x10037be8
mov esi, 0x800
jmp 0x10037bfd
vcomiss xmm0, dword [0x101581f8]
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 + 0x28], ecx
test esi, esi
jle 0x10037c41
cmp esi, 8
mov eax, esi
mov edx, 8
cmovl eax, edx
test eax, eax
jle 0x10037c41
mov ecx, dword [0x1018bb08]
test ecx, ecx
je 0x10037c30
inc dword [ecx + 0x36c]
shl eax, 3
push eax
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x28], eax
mov ecx, eax
mov edx, dword [edi + 0x1c]
push esi
push ecx
push ecx
lea ecx, [esp + 0xd4]
call fcn.10036e10
mov edi, dword [edi + 0x40]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], edi
test edi, edi
jle 0x10037c96
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x10037c96
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10037c87
inc dword [eax + 0x36c]
shl ecx, 4
push ecx
call dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x2c], 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 0x10037ce8
mov edx, dword [esp + 0x2c]
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 0x10037cc0
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc8]
push edi
call fcn.1002fcd0
add esp, 4
test edi, edi
jle 0x10037d57
mov edx, dword [esp + 0x2c]
xor esi, esi
add edx, 0xa
nop dword [eax]
cmp dword [edx + 2], 0
je 0x10037d4c
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 0x10037d10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10037d77
mov ecx, dword [0x1018bb08]
test ecx, ecx
je 0x10037d6f
dec dword [ecx + 0x36c]
push eax
call dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x10037de7
mov esi, dword [esp + 0x44]
add esi, 0x38
mov dword [esp + 0x6c], eax
nop word [eax + eax]
mov eax, dword [esi]
test eax, eax
je 0x10037ddd
mov edx, dword [esi - 0x10]
lea ecx, [esp + 0xc8]
push eax
call fcn.1002fcd0
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x10037ddd
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [eax + edx + 0xc], 0
je 0x10037dd5
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 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 0x10037db1
add esi, 0x54
sub dword [esp + 0x6c], 1
jne 0x10037d90
mov edi, dword [esp + 0x1c]
test byte [edi], 1
mov eax, dword [edi + 0x20]
jne 0x10037e18
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 [0x10157ec8]
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 [0x1018bb08]
vmovss dword [edi + 0x24], xmm1
vmovss dword [edi + 0x28], xmm0
je 0x10037e6f
shl esi, 2
test eax, eax
je 0x10037e65
inc dword [eax + 0x36c]
push esi
call dword [esp + 0x38]
mov dword [edi + 0x18], eax
jmp 0x10037e81
test eax, eax
je 0x10037e79
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 + 0x27], al
test ecx, ecx
jle 0x10038247
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 0x10038224
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 + 0x6c], ecx
vmovss dword [esp + 0x74], xmm0
cmp byte [ecx + 0x3c], 0
mov edi, dword [ecx + 0x74]
mov dword [esp + 0x2c], edi
jne 0x10037f34
mov ecx, edi
call fcn.10034750
mov ecx, dword [esp + 0x6c]
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 [0x10157e60]
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 + 0x20], xmm1
vmovss dword [esp + 0x34], xmm2
mov dword [esp + 0x78], 0
cmp dword [eax + 0x30], 0
jle 0x10038215
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x60], esi
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, esi
add eax, ecx
cmp word [eax + 4], 0
jne 0x10037faf
cmp word [eax + 6], 0
je 0x100381ed
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 + 0x84], esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x70], 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 + 0x84]
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 + 0x70]
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 + 0x4c]
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 + 0x90]
call fcn.10034e00
cmp byte [edi + 0x14], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x28]
lea eax, [eax + eax*4]
je 0x100380c1
or dword [ecx + eax*8 - 0x28], 1
mov byte [esp + 0x27], 1
mov edx, dword [esp + 0x1c]
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi]
mov dword [esp + 0x30], esi
mov eax, dword [edx + 0x1c]
mov edx, eax
imul edx, dword [esp + 0x50]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x50], 0
mov eax, dword [esi + 0x14]
add edx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x1003815f
add eax, edx
cmp dword [edi + 4], 0
mov dword [esp + 0x54], eax
jle 0x100381dd
lea edx, [ecx*4]
mov dword [esp + 0x64], edx
xor edx, edx
test ecx, ecx
jle 0x1003813c
add esi, 3
nop dword [eax + eax]
mov ecx, dword [esp + 0x54]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [edi]
cmp edx, ecx
jl 0x10038120
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
add eax, dword [esp + 0x74]
inc edx
add esi, dword [esp + 0x64]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], esi
cmp edx, dword [edi + 4]
jl 0x10038112
jmp 0x100381dd
cmp dword [edi + 4], 0
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x18]
lea edx, [eax + edx*4]
mov dword [esp + 0x54], edx
jle 0x100381dd
mov eax, dword [esp + 0x74]
shl eax, 2
mov dword [esp + 0x64], eax
lea eax, [ecx*4]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x30]
xor esi, esi
test ecx, ecx
jle 0x100381bc
sub eax, dword [esp + 0x54]
mov dword [esp + 0x74], eax
nop
mov eax, dword [edx + eax]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc esi
mov ecx, dword [edi]
mov eax, dword [esp + 0x74]
cmp esi, ecx
jl 0x100381a0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
add edx, dword [esp + 0x64]
inc esi
add eax, dword [esp + 0xb8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], eax
cmp esi, dword [edi + 4]
jl 0x10038190
mov edx, dword [esp + 0x1c]
vmovss xmm2, dword [esp + 0x34]
vmovss xmm1, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x38]
inc ecx
add dword [esp + 0x60], 0x20
add dword [esp + 0x70], 0x10
mov esi, dword [esp + 0x60]
cmp ecx, dword [eax + 0x30]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x70]
jl 0x10037f93
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 0x10037ec0
mov edi, dword [esp + 0x1c]
mov al, byte [esp + 0x27]
xor esi, esi
mov byte [edi + 0x12], al
cmp dword [esp + 0x68], esi
jle 0x1003827f
mov edi, dword [esp + 0x48]
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1003826c
mov eax, dword [0x1018bb08]
test eax, eax
je 0x1003826c
dec dword [eax + 0x36c]
push ecx
call dword [esp + 0x44]
inc esi
add esp, 4
cmp esi, dword [esp + 0x68]
jl 0x10038256
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x100382ed
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
add esi, 0x18
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100382ae
mov eax, dword [0x1018bb08]
test eax, eax
je 0x100382a8
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x100382ca
mov eax, dword [0x1018bb08]
test eax, eax
je 0x100382c4
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov eax, dword [esi]
test eax, eax
je 0x100382df
push eax
call fcn.100bc710
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub dword [esp + 0x5c], 1
jne 0x10038292
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x10038318
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10038304
dec dword [eax + 0x36c]
mov esi, dword [esp + 0x40]
push ecx
call esi
add esp, 4
mov dword [esp + 0x44], 0
jmp 0x1003831c
mov esi, dword [esp + 0x40]
mov ecx, edi
call fcn.10034460
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1b], 1
test ecx, ecx
je 0x10038345
mov eax, dword [0x1018bb08]
test eax, eax
je 0x1003833f
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x10038362
mov eax, dword [0x1018bb08]
test eax, eax
je 0x1003835c
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1003837f
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10038379
dec dword [eax + 0x36c]
push ecx
call esi
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x100383a2
mov eax, dword [0x1018bb08]
test eax, eax
je 0x10038396
dec dword [eax + 0x36c]
mov esi, dword [esp + 0x40]
push edi
call esi
add esp, 4
jmp 0x100383a6
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100383c4
mov ecx, dword [0x1018bb08]
test ecx, ecx
je 0x100383be
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.101122e5
mov esp, ebp
pop ebp
ret