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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013daa1
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e0
mov eax, dword [0x1018e4ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x130], esi
call fcn.10038dc0
mov ecx, dword [esi + 0x14]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x150], edx
test ecx, ecx
je 0x1003772d
mov eax, dword [0x10191030]
test eax, eax
je 0x10037721
dec dword [eax + 0x374]
push ecx
call edx
mov edx, dword [ebp - 0x150]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10037749
mov eax, dword [0x10191030]
test eax, eax
je 0x10037743
dec dword [eax + 0x374]
push ecx
call edx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x198], edi
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x4c]
mov edx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x11c], 8
mov dword [ebp - 0x13c], edx
test ecx, ecx
jle 0x10037803
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
test eax, eax
jle 0x10037803
mov ecx, dword [0x10191030]
test ecx, ecx
je 0x100377d3
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call edx
mov ecx, dword [ebp - 0x120]
add esp, 4
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x1b4], ecx
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x1b0], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x15c], eax
test eax, eax
jle 0x10037861
cmp eax, 8
mov esi, eax
cmovl esi, dword [ebp - 0x11c]
test esi, esi
jle 0x10037861
mov eax, dword [0x10191030]
test eax, eax
je 0x10037835
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x144]
mov edi, eax
mov eax, dword [ebp - 0x15c]
add esp, 4
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x19c], esi
mov esi, dword [ebp - 0x154]
imul ecx, ecx, 0xc4
mov dword [ebp - 0x1a0], eax
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x15c]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov dword [ebp - 0x12c], 0
cmp dword [eax + 0x4c], 0
jle 0x10037a10
xor edx, edx
add esi, 0xa4
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x124], esi
nop word [eax + eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x148], ecx
cmp dword [eax + 0x34], edx
jle 0x10037a85
mov edi, dword [ebp - 0x124]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x10037923
mov ecx, dword [eax + 0x3c]
or esi, esi
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x10037915
mov dword [edi - 4], edx
mov esi, edx
mov eax, dword [ebp - 0x130]
inc edx
mov ecx, esi
cmp edx, dword [eax + 0x34]
jl 0x100378f6
mov edi, dword [ebp - 0x14c]
cmp ecx, 0xffffffff
je 0x10037a85
mov eax, dword [ebp - 0x148]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.1002db30
mov ecx, dword [ebp - 0x124]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [ebp - 0x120], ecx
call fcn.1002de10
add esp, 4
test eax, eax
je 0x10037a85
mov eax, dword [ebp - 0x120]
mov edx, 0x10180b88
mov esi, dword [ebp - 0x124]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x11c], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x100379c1
movzx eax, word [edx + 2]
test ax, ax
je 0x100379bb
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x100379a0
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x11c]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x130]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x128]
inc ecx
add edx, 0x78
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], edx
cmp ecx, dword [eax + 0x4c]
jl 0x100378d0
mov eax, dword [ebp - 0x144]
xor esi, esi
mov dword [ebp - 0x124], esi
test eax, eax
jle 0x10037e35
mov edx, dword [ebp - 0x154]
add edx, 0xa8
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x134], edx
nop
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x140], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x120], eax
cmp ecx, eax
jle 0x10037ad3
test eax, eax
je 0x10037a91
cdq
sub eax, edx
mov edx, dword [ebp - 0x134]
sar eax, 1
add eax, dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
jmp 0x10037a9b
mov byte [ebp - 0x135], 0
jmp 0x10038d53
mov dword [ebp - 0x11c], 8
cmp dword [ebp - 0x11c], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x12c], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x12c]
push eax
call fcn.1002bee0
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x12c]
jmp 0x10037ad6
lea eax, [edx + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx + 0xc]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x11c], ecx
cmp dword [ecx], 0
jne 0x10037b60
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x120], eax
cmp esi, eax
jle 0x10037b49
test eax, eax
je 0x10037b2b
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x120]
jmp 0x10037b30
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x11c]
push eax
call fcn.1002bee0
mov ecx, dword [ebp - 0x11c]
lea eax, [esi*4]
mov dword [ecx], esi
push eax
push 0
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x134]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x164], eax
cmp word [eax], 0
je 0x10037c58
nop dword [eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x10037c52
movzx edi, word [eax]
cmp edi, ecx
ja 0x10037c39
nop dword [eax + eax]
mov eax, dword [ebp - 0x148]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x14c]
sar esi, 5
mov dword [ebp - 0x120], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x10037c20
mov ecx, dword [ebp - 0x134]
mov edx, edi
add ecx, 0xffffff58
call fcn.1002e320
mov edx, dword [ebp - 0x134]
test eax, eax
je 0x10037c26
inc dword [edx]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x14c]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x14c]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x148]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x124]
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x164]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x10037ba0
mov eax, dword [ebp - 0x164]
add eax, 4
mov dword [ebp - 0x164], eax
cmp word [eax], 0
jne 0x10037b80
mov edi, dword [ebp - 0x14c]
add edx, 0xc4
sub dword [ebp - 0x128], 1
mov dword [ebp - 0x134], edx
jne 0x10037a40
mov esi, dword [ebp - 0x154]
mov eax, dword [ebp - 0x144]
add esi, 0xb8
mov dword [ebp - 0x158], eax
nop dword [eax]
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x10037d01
mov eax, dword [0x10191030]
test eax, eax
je 0x10037ca7
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call dword [ebp - 0x13c]
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x120], eax
test edx, edx
je 0x10037cfb
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x10037ceb
mov eax, dword [0x10191030]
test eax, eax
je 0x10037ceb
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x150]
mov eax, dword [ebp - 0x120]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x12c], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x16c], eax
cmp edx, eax
jae 0x10037ddf
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov eax, dword [edx]
mov dword [ebp - 0x178], eax
test eax, eax
je 0x10037dc1
xor edx, edx
mov edi, 1
mov dword [ebp - 0x11c], edx
test edi, eax
je 0x10037dad
mov eax, dword [esi]
and ecx, 0xffffffe0
add ecx, edx
mov dword [ebp - 0x140], ecx
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10037d8b
lea edx, [eax + 1]
mov dword [ebp - 0x120], edx
test ecx, ecx
je 0x10037d79
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x120]
sar eax, 1
add eax, ecx
jmp 0x10037d7e
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1002bee0
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x140]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x128]
inc edx
rol edi, 1
mov dword [ebp - 0x11c], edx
cmp edx, 0x20
jb 0x10037d43
mov edx, dword [ebp - 0x12c]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], ecx
cmp edx, dword [ebp - 0x16c]
jb 0x10037d26
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x10037e14
mov eax, dword [0x10191030]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x10037e03
dec dword [eax + 0x374]
push ecx
call dword [ebp - 0x150]
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x158], 1
jne 0x10037c90
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x124]
jmp 0x10037e3d
xor esi, esi
mov dword [ebp - 0x124], esi
cmp dword [ebp - 0x15c], 0
jle 0x10037eaf
mov esi, dword [ebp - 0x150]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x15c]
mov dword [ebp - 0x11c], eax
nop dword [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10037e95
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x10191030]
test eax, eax
je 0x10037e83
dec dword [eax + 0x374]
push ecx
call esi
mov eax, dword [ebp - 0x11c]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x11c], eax
sub edi, 1
jne 0x10037e60
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x124]
test edi, edi
je 0x10037eee
mov eax, dword [0x10191030]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x1a0], 0
test eax, eax
je 0x10037ed6
dec dword [eax + 0x374]
push edi
call dword [ebp - 0x150]
add esp, 4
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x198], eax
xor eax, eax
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1c0], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1bc], eax
mov byte [ebp - 4], 7
mov eax, 8
test esi, esi
jle 0x10037f65
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x10037f65
mov eax, dword [0x10191030]
test eax, eax
je 0x10037f3f
inc dword [eax + 0x374]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x13c]
mov dword [ebp - 0x134], eax
add esp, 4
mov dword [ebp - 0x1a4], eax
mov eax, 8
mov dword [ebp - 0x1a8], edi
mov dword [ebp - 0x1ac], esi
test esi, esi
jle 0x10037fb2
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x10037fb2
mov eax, dword [0x10191030]
test eax, eax
je 0x10037f8a
inc dword [eax + 0x374]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call dword [ebp - 0x13c]
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c0], edi
mov ecx, esi
mov dword [ebp - 0x1c4], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x134]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x148]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x144]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x128], esi
xor ecx, ecx
mov dword [ebp - 0x124], eax
add esp, 0xc
mov dword [ebp - 0x15c], ecx
test edx, edx
jle 0x10038417
mov edi, dword [ebp - 0x154]
add edi, 0x98
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x120], edx
nop
mov edx, dword [edi + 0x10]
test edx, edx
je 0x100383f7
add dword [ebp - 0x124], edx
add dword [ebp - 0x15c], edx
shl eax, 4
add eax, dword [ebp - 0x134]
mov dword [edi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x148]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x130]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x11c]
mov dword [ebp - 0x158], edx
mov eax, dword [edx + 0x10]
mov dword [edi - 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [edi - 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [edi - 0x18], 0
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [edi - 8], al
mov al, byte [edx + 0x18]
mov byte [edi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x10182db0]
jbe 0x10038110
mov eax, dword [edi - 0x7c]
mov edi, dword [edi - 0x94]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0x164]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
mov edi, dword [ebp - 0x164]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub esi, eax
movd xmm0, esi
mov esi, dword [ebp - 0x128]
jmp 0x10038136
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x10184270]
movzx edx, byte [ecx + eax + 0x13]
movzx eax, byte [ecx + eax + 0x12]
shl eax, 8
add edx, eax
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x160], eax
xor eax, eax
mov dword [ebp - 0x178], eax
movss dword [ebp - 0x140], xmm1
cmp dword [edi + 0x20], eax
jle 0x100383eb
mov dword [ebp - 0x12c], eax
nop dword [eax + eax]
mov edx, dword [edi + 0x28]
lea ecx, [edi - 0x98]
mov edx, dword [edx + eax*4]
call fcn.1002e320
mov ecx, dword [ebp - 0x158]
mov edx, eax
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x194], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x17c], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [ebp - 0x184]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x174]
mulss xmm0, xmm1
push ecx
lea ecx, [edi - 0x98]
movss dword [ebp - 0x18c], xmm0
call fcn.1002e730
add esp, 0x10
test eax, eax
jne 0x1003820c
mov dword [ebp - 0x174], eax
xor esi, esi
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x17c], eax
jmp 0x1003834a
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x174]
mulss xmm0, dword [ebp - 0x17c]
addss xmm0, dword [0x10182db0]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x170], xmm0
fld qword [ebp - 0x170]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x170]
movsd xmm0, qword [ebp - 0x170]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x184]
mov dword [ebp - 0x174], eax
mulss xmm0, dword [ebp - 0x18c]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x170], xmm0
fld qword [ebp - 0x170]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x170]
movsd xmm0, qword [ebp - 0x170]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x188]
mov dword [ebp - 0x16c], eax
mulss xmm0, dword [ebp - 0x17c]
addss xmm0, dword [0x10182db0]
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x180], xmm0
fld qword [ebp - 0x180]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x180]
movsd xmm0, qword [ebp - 0x180]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [ebp - 0x194]
mov dword [ebp - 0x17c], eax
mulss xmm0, dword [ebp - 0x18c]
subss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [ebp - 0x190], xmm0
fld qword [ebp - 0x190]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x190]
movsd xmm0, qword [ebp - 0x190]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si esi, xmm0
mov eax, dword [ebp - 0x160]
sub esi, dword [ebp - 0x16c]
movzx edx, ax
mov eax, dword [ebp - 0x158]
add esi, edx
movss xmm1, dword [ebp - 0x140]
dec si
mov cx, word [eax + 0x14]
sub cx, word [ebp - 0x174]
mov eax, dword [edi - 4]
dec cx
mov edi, dword [ebp - 0x12c]
add cx, dx
add cx, word [ebp - 0x17c]
mov edx, dword [ebp - 0x12c]
mov word [eax + edi + 4], cx
mov eax, dword [ebp - 0x158]
mov edi, dword [ebp - 0x164]
add si, word [eax + 0x18]
mov eax, dword [edi - 4]
mov word [eax + edx + 6], si
mov eax, dword [edi - 4]
mov esi, dword [ebp - 0x128]
movzx ecx, word [eax + edx + 6]
movzx eax, word [eax + edx + 4]
add edx, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x178]
inc eax
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x178], eax
add esi, ecx
mov dword [ebp - 0x128], esi
cmp eax, dword [edi + 0x20]
jl 0x10038170
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x15c]
add dword [ebp - 0x11c], 0x78
add edi, 0xc4
sub dword [ebp - 0x120], 1
mov dword [ebp - 0x164], edi
jne 0x10038030
movd xmm0, esi
cvtdq2ps xmm0, xmm0
call fcn.10008920
mov edi, dword [ebp - 0x130]
cvttss2si ecx, xmm0
mov eax, dword [edi + 0xc]
mov dword [edi + 0x20], 0
inc ecx
test eax, eax
jg 0x10038477
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10183090]
jb 0x10038453
mov eax, 0x1000
jmp 0x10038477
comiss xmm0, dword [0x1018308c]
jb 0x10038463
mov eax, 0x800
jmp 0x10038477
comiss xmm0, dword [0x10183078]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x1f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [ebp - 0x140], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x120], eax
mov eax, dword [0x10191030]
test eax, eax
je 0x100384ae
inc dword [eax + 0x374]
push 0x30
call dword [ebp - 0x13c]
mov ecx, dword [0x10191030]
mov esi, eax
mov eax, dword [ebp - 0x120]
add esp, 4
sub eax, dword [ebp - 0x140]
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x160], eax
test ecx, ecx
je 0x100384e3
inc dword [ecx + 0x374]
shl eax, 3
push eax
call dword [ebp - 0x13c]
add esp, 4
test esi, esi
je 0x1003856e
test eax, eax
je 0x1003855c
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1e0], edx
mov edx, dword [ebp - 0x160]
push edx
push eax
mov dword [ebp - 0x1c8], eax
mov eax, 0x8000
sub eax, ecx
mov dword [ebp - 0x1dc], ecx
push eax
mov ecx, esi
mov dword [ebp - 0x1ec], esi
mov dword [ebp - 0x1d4], 1
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x1d8], 0
call fcn.1002ce30
add esp, 0xc
jmp 0x10038598
mov eax, dword [0x10191030]
test eax, eax
je 0x1003856b
dec dword [eax + 0x374]
push esi
jmp 0x10038583
test eax, eax
je 0x1003858c
mov ecx, dword [0x10191030]
test ecx, ecx
je 0x10038582
dec dword [ecx + 0x374]
push eax
call dword [ebp - 0x150]
add esp, 4
mov esi, dword [ebp - 0x1ec]
mov dword [ebp - 0x124], esi
mov edx, esi
mov ecx, edi
call fcn.10038e30
mov eax, dword [ebp - 0x144]
test eax, eax
jle 0x10038629
mov esi, dword [ebp - 0x154]
add esi, 0xa8
mov dword [ebp - 0x120], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x1003860e
mov edx, dword [esi - 0x14]
mov ecx, dword [ebp - 0x124]
push eax
call fcn.1002d300
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1003860e
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x10038606
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
mov eax, dword [ebp - 0x130]
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 0x100385e0
add esi, 0xc4
sub dword [ebp - 0x120], 1
jne 0x100385c0
mov edi, dword [ebp - 0x130]
mov esi, dword [ebp - 0x124]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x10038657
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
movss xmm1, dword [0x10182e48]
lea ecx, [eax + 1]
mov eax, dword [edi + 0x1c]
movaps xmm2, xmm1
mov dword [edi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
mov eax, dword [0x10191030]
movss dword [edi + 0x24], xmm2
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x1003869d
inc dword [eax + 0x374]
push ecx
call dword [ebp - 0x13c]
mov ecx, dword [edi + 0x1c]
add esp, 4
imul ecx, dword [edi + 0x20]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x1cc], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1e4], eax
test edx, edx
jle 0x100388aa
mov ecx, dword [ebp - 0x154]
xor eax, eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], edx
nop word [eax + eax]
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x10038880
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [ebp - 0x1f0]
call fcn.10033570
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x10182e48]
movss dword [ebp - 0x160], xmm1
lahf
test ah, 0x44
jnp 0x10038864
xor esi, esi
nop dword [eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10183e10]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.1013bbe0
movss xmm1, dword [ebp - 0x160]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x118], dl
inc esi
cmp esi, 0x100
jb 0x10038750
mov ecx, dword [ebp - 0x13c]
xor eax, eax
mov dword [ebp - 0x12c], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1003886a
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x128], ecx
cmp dword [ecx + 6], 0
je 0x10038848
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov dword [ebp - 0x11c], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x130]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x128]
add edx, eax
test edi, edi
je 0x10038836
mov eax, dword [ebp - 0x11c]
xor ecx, ecx
test esi, esi
je 0x10038829
nop dword [eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x118]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10038810
mov eax, dword [ebp - 0x11c]
dec edi
add edx, eax
test edi, edi
jg 0x10038807
mov ecx, dword [ebp - 0x128]
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x130]
inc eax
add ecx, 0x10
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], ecx
cmp eax, dword [edx + 0xa8]
jl 0x100387c7
mov ecx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x140]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], edx
jne 0x10038700
mov esi, dword [ebp - 0x1ec]
cmp dword [ebp - 0x1c8], 0
je 0x100388c2
mov eax, dword [0x10191030]
test eax, eax
je 0x100388c2
dec dword [eax + 0x374]
push dword [ebp - 0x1c8]
mov edi, dword [ebp - 0x150]
call edi
add esp, 4
test esi, esi
je 0x100388e6
mov eax, dword [0x10191030]
test eax, eax
je 0x100388e6
dec dword [eax + 0x374]
push esi
call edi
mov ecx, dword [ebp - 0x134]
add esp, 4
test ecx, ecx
je 0x1003892d
mov eax, dword [0x10191030]
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1ac], 0
test eax, eax
je 0x10038919
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x1a4], ecx
mov eax, dword [ebp - 0x144]
test eax, eax
jle 0x10038cfd
mov edi, dword [ebp - 0x154]
xor ecx, ecx
add edi, 4
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x158], eax
nop dword [eax + eax]
cmp dword [edi + 0xa4], 0
je 0x10038c65
mov eax, dword [ebp - 0x130]
xorps xmm3, xmm3
mov esi, dword [edi + 0x18]
mov edx, dword [edi]
mov eax, dword [eax + 0x54]
add eax, ecx
movzx ecx, byte [esi + edx + 6]
mov dword [ebp - 0x12c], eax
movsx ecx, cx
mov eax, dword [eax + 0x74]
mov dword [ebp - 0x11c], eax
mov eax, 0x100
cwde
imul ecx, eax
movzx eax, byte [esi + edx + 7]
add cx, ax
mov eax, 0x100
movsx edi, cx
movzx ecx, byte [esi + edx + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx + 5]
mov edx, dword [ebp - 0x12c]
add cx, ax
movss xmm2, dword [edx + 0x10]
movsx ecx, cx
mov eax, ecx
sub eax, edi
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov ecx, dword [ebp - 0x11c]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm3
divss xmm2, xmm0
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm0, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
cvttss2si esi, xmm0
comiss xmm1, xmm3
mulss xmm1, xmm2
seta al
cmp byte [edx + 0x3c], 0
lea eax, [eax*2 - 1]
movd xmm0, eax
lea eax, [ecx + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x160], eax
addss xmm0, xmm1
cvttss2si edi, xmm0
jne 0x10038a88
call fcn.10039500
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x12c]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x160]
mov dword [ecx + 0x3c], edx
movss dword [eax], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
movss dword [ecx + 0x50], xmm0
movss xmm0, dword [eax]
movss xmm2, dword [0x10182e18]
inc word [ecx + 0x40]
addss xmm0, xmm2
mov edi, dword [ebp - 0x140]
xor ecx, ecx
movss xmm1, dword [edx + 0x28]
movss dword [ebp - 0x184], xmm1
mov dword [ebp - 0x120], ecx
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [edx + 0x2c]
movss dword [ebp - 0x160], xmm0
cmp dword [edi + 0xa4], ecx
jle 0x10038c59
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0xbc]
movss xmm7, dword [edx + 0x34]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi + 0x94]
mov dword [ebp - 0x188], eax
movss xmm0, dword [esi + ecx + 0x10]
comiss xmm7, xmm0
ja 0x10038b0e
movss xmm7, dword [edx + 0x38]
minss xmm7, xmm0
ucomiss xmm0, xmm7
movaps xmm6, xmm1
lahf
test ah, 0x44
jnp 0x10038b3a
cmp byte [edx + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x10038b36
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
mov eax, dword [ebp - 0x130]
sub esp, 0x1c
movss xmm2, dword [0x10182e48]
movss xmm3, dword [0x10182e48]
movd xmm0, dword [eax + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x18], xmm7
divss xmm2, xmm0
movd xmm0, dword [eax + 0x20]
movzx eax, word [esi + ecx]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
movzx eax, word [esi + ecx + 2]
divss xmm3, xmm0
movd xmm4, eax
movzx eax, word [esi + ecx + 4]
cvtdq2ps xmm4, xmm4
movd xmm1, eax
movzx eax, word [esi + ecx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm4, xmm3
mulss xmm0, xmm3
movss xmm3, dword [esi + ecx + 0xc]
mulss xmm1, xmm2
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esi + ecx + 0x18]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
xorps xmm4, xmm4
addss xmm0, xmm4
cvtdq2ps xmm5, xmm5
addss xmm0, dword [ebp - 0x160]
mulss xmm5, xmm2
addss xmm3, xmm4
movss xmm2, dword [esi + ecx + 8]
addss xmm2, xmm4
movss dword [esp + 8], xmm5
addss xmm3, dword [ebp - 0x160]
movss dword [esp + 4], xmm0
movss xmm0, dword [esi + ecx + 0x14]
mov ecx, dword [ebp - 0x11c]
addss xmm0, xmm4
addss xmm2, xmm6
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [ebp - 0x188]
call fcn.100399c0
mov ecx, dword [ebp - 0x120]
add esi, 0x1c
movss xmm1, dword [ebp - 0x184]
inc ecx
movss xmm2, dword [0x10182e18]
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x120], ecx
cmp ecx, dword [edi + 0xa4]
jl 0x10038ae0
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x128]
add edi, 0xc4
add ecx, 0x78
sub eax, 1
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x158], eax
jne 0x10038960
mov eax, dword [ebp - 0x144]
mov edi, dword [ebp - 0x150]
test eax, eax
jle 0x10038cfd
mov esi, dword [ebp - 0x154]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10038cc7
mov eax, dword [0x10191030]
test eax, eax
je 0x10038cbb
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x144]
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x10038ce8
mov eax, dword [0x10191030]
test eax, eax
je 0x10038cdc
dec dword [eax + 0x374]
push ecx
call edi
mov eax, dword [ebp - 0x144]
add esp, 4
add esi, 0xc4
mov byte [ebp - 4], 7
sub eax, 1
mov dword [ebp - 0x144], eax
jne 0x10038ca5
mov ecx, dword [ebp - 0x130]
call fcn.10038f70
mov byte [ebp - 0x135], 1
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x10038d2e
mov eax, dword [0x10191030]
test eax, eax
je 0x10038d28
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x10038d4d
mov eax, dword [0x10191030]
test eax, eax
je 0x10038d47
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov edi, dword [ebp - 0x14c]
test edi, edi
je 0x10038d74
mov eax, dword [0x10191030]
test eax, eax
je 0x10038d66
dec dword [eax + 0x374]
mov esi, dword [ebp - 0x150]
push edi
call esi
add esp, 4
jmp 0x10038d7a
mov esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x10038d9a
mov ecx, dword [0x10191030]
test ecx, ecx
je 0x10038d94
dec dword [ecx + 0x374]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x135]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1013ad45
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret