Function at 0x10049120
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 0x100c5017
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x10110040]
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, edx
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x1a0], ecx
cmp dword [esi + 0x460], 0
jge 0x100491e6
test byte [esi], 2
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
push eax
mov dword [ebp - 0x1d4], 0x1b00d9
je 0x100491d7
mov dword [ebp - 0x1d4], 0x20002
call fcn.100486d0
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x460], eax
cmp dword [esi + 0x464], 0
jge 0x10049253
test byte [esi], 4
jne 0x10049253
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
push eax
lea ecx, [esi + 0x40]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1d4], 0x400041
call fcn.100486d0
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 [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x184], edx
test ecx, ecx
je 0x100492b2
mov eax, dword [0x1011138c]
test eax, eax
je 0x100492a6
dec dword [eax + 0x370]
push ecx
call edx
mov edx, dword [ebp - 0x184]
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x100492ce
mov eax, dword [0x1011138c]
test eax, eax
je 0x100492c8
dec dword [eax + 0x370]
push ecx
call edx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [esi + 0x12], 0
mov byte [ebp - 0x155], 0
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x1dc], 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 - 0x19c], ecx
mov dword [ebp - 0x16c], 8
mov dword [ebp - 0x178], edx
test ecx, ecx
jle 0x10049390
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x16c]
mov dword [ebp - 0x160], eax
test eax, eax
jle 0x10049390
mov ecx, dword [0x1011138c]
test ecx, ecx
je 0x10049363
inc dword [ecx + 0x370]
imul eax, eax, 0x54
push eax
call edx
mov ecx, dword [ebp - 0x160]
add esp, 4
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x1ec], ecx
mov ecx, dword [ebp - 0x19c]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1f0], ecx
mov ecx, dword [esi + 0x34]
mov dword [ebp - 0x15c], ecx
test ecx, ecx
jle 0x100493f5
cmp ecx, 8
mov eax, ecx
cmovl eax, dword [ebp - 0x16c]
mov dword [ebp - 0x160], eax
test eax, eax
jle 0x100493f5
mov ecx, dword [0x1011138c]
test ecx, ecx
je 0x100493c9
inc dword [ecx + 0x370]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call edx
mov ecx, dword [ebp - 0x15c]
mov edi, eax
mov eax, dword [ebp - 0x160]
add esp, 4
mov dword [ebp - 0x194], edi
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1e4], ecx
imul ecx, dword [ebp - 0x19c], 0x54
push ecx
push 0
push dword [ebp - 0x188]
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
add esp, 0xc
mov dword [ebp - 0x174], 0
cmp dword [esi + 0x4c], 0
jle 0x10049587
mov esi, dword [ebp - 0x188]
xor edx, edx
mov ecx, dword [ebp - 0x170]
add esi, 0x34
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x190], esi
nop dword [eax]
mov eax, dword [ecx + 0x54]
add eax, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x16c], eax
cmp dword [ecx + 0x34], edx
jle 0x100495f7
mov edi, dword [ebp - 0x190]
or esi, 0xffffffff
mov ecx, esi
cmp esi, 0xffffffff
jne 0x100494b9
mov ecx, dword [ebp - 0x170]
or esi, esi
mov eax, dword [eax + 0x74]
mov ecx, dword [ecx + 0x3c]
cmp eax, dword [ecx + edx*4]
jne 0x100494a5
mov dword [edi - 4], edx
mov esi, edx
mov eax, dword [ebp - 0x170]
inc edx
mov ecx, esi
cmp edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x16c]
jl 0x10049486
mov edi, dword [ebp - 0x194]
cmp ecx, 0xffffffff
je 0x100495f7
push dword [ebx + 8]
mov esi, dword [ebp - 0x190]
push eax
push dword [ebp - 0x1a0]
lea ecx, [esi - 0x34]
call fcn.10048900
test al, al
je 0x100495f7
mov ecx, dword [ebp - 0x16c]
mov edx, 0x10109588
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [ebp - 0x155], al
mov eax, dword [esi - 4]
lea eax, [eax + eax*2]
mov dword [ebp - 0x160], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1004953b
nop
movzx eax, word [edx + 2]
test ax, ax
je 0x1004953b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x10049520
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x174]
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 [ebp - 0x170]
mov edx, dword [ebp - 0x180]
add edx, 0x78
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x180], edx
cmp eax, dword [ecx + 0x4c]
jl 0x10049460
mov eax, dword [ebp - 0x19c]
xor esi, esi
mov dword [ebp - 0x164], esi
test eax, eax
jle 0x100499a4
mov edx, dword [ebp - 0x188]
add edx, 0x44
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x17c], edx
mov eax, dword [edx - 0x14]
mov ecx, dword [edx - 0x10]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x1a0], ecx
mov eax, dword [edx - 4]
mov dword [ebp - 0x190], esi
mov dword [ebp - 0x160], eax
cmp ecx, eax
jle 0x10049645
test eax, eax
je 0x10049603
cdq
sub eax, edx
mov edx, dword [ebp - 0x17c]
sar eax, 1
add eax, dword [ebp - 0x160]
mov dword [ebp - 0x16c], eax
jmp 0x1004960d
mov byte [ebp - 0x155], 0
jmp 0x1004a7f1
mov dword [ebp - 0x16c], 8
cmp dword [ebp - 0x16c], ecx
lea eax, [edx - 8]
mov dword [ebp - 0x174], eax
mov eax, ecx
cmovg eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x174]
push eax
call fcn.10040b60
mov edx, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x174]
jmp 0x10049648
lea eax, [edx - 8]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [edx]
call sub.VCRUNTIME140.dll_memset
lea ecx, [esi*8 + 0xc]
add esp, 0xc
add ecx, edi
mov dword [ebp - 0x16c], ecx
cmp dword [ecx], 0
jne 0x100496d1
mov esi, dword [edi + esi*8 + 4]
mov eax, dword [ecx + 4]
add esi, 0x20
sar esi, 5
mov dword [ebp - 0x160], eax
cmp esi, eax
jle 0x100496ba
test eax, eax
je 0x1004969c
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x160]
jmp 0x100496a1
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x16c]
push eax
call fcn.10040b60
mov ecx, dword [ebp - 0x16c]
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 - 0x17c]
mov eax, dword [edx - 0x18]
mov dword [ebp - 0x18c], eax
cmp word [eax], 0
je 0x100497c7
nop word [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x100497c1
movzx edi, word [eax]
cmp edi, ecx
ja 0x100497a8
nop dword [eax + eax]
mov eax, dword [ebp - 0x190]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x194]
sar esi, 5
mov dword [ebp - 0x160], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x1004978f
mov eax, dword [ebp - 0x17c]
push edi
push dword [eax - 0x2c]
call fcn.1005ff20
mov edx, dword [ebp - 0x17c]
add esp, 8
test eax, eax
je 0x10049795
inc dword [edx - 0xc]
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x194]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x194]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x190]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x164]
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x18c]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x10049710
mov eax, dword [ebp - 0x18c]
add eax, 4
mov dword [ebp - 0x18c], eax
cmp word [eax], 0
jne 0x100496f0
mov edi, dword [ebp - 0x194]
add edx, 0x54
sub dword [ebp - 0x180], 1
mov dword [ebp - 0x17c], edx
jne 0x100495b2
mov esi, dword [ebp - 0x188]
mov eax, dword [ebp - 0x19c]
add esi, 0x50
mov dword [ebp - 0x174], esi
mov dword [ebp - 0x180], eax
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x10049865
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004980f
inc dword [eax + 0x370]
mov eax, edi
shl eax, 5
push eax
call dword [ebp - 0x178]
mov edx, dword [esi]
add esp, 4
mov dword [ebp - 0x160], eax
test edx, edx
je 0x10049860
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 0x10049850
mov eax, dword [0x1011138c]
test eax, eax
je 0x10049850
dec dword [eax + 0x370]
push ecx
call dword [ebp - 0x184]
mov eax, dword [ebp - 0x160]
add esp, 4
mov dword [esi], eax
mov dword [esi - 4], edi
mov ecx, dword [esi - 0xc]
mov edx, ecx
mov eax, dword [esi - 0x14]
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x16c], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x1ac], eax
cmp ecx, eax
jae 0x1004994b
nop word [eax + eax]
mov eax, dword [edx]
mov dword [ebp - 0x160], eax
test eax, eax
je 0x10049936
xor edi, edi
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [ebp - 0x160], eax
je 0x1004992c
mov ecx, dword [esi - 8]
mov eax, edx
sub eax, dword [ebp - 0x1a0]
xorps xmm0, xmm0
shl eax, 3
and eax, 0xffffffe0
add eax, edi
movzx eax, ax
movups xmmword [ebp - 0x1c8], xmm0
mov dword [ebp - 0x1c0], eax
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x1004990b
inc ecx
test eax, eax
je 0x100498ef
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi - 4]
jmp 0x100498f4
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
call fcn.1004a990
mov edx, dword [ebp - 0x16c]
xorps xmm0, xmm0
mov eax, dword [esi - 8]
mov ecx, dword [esi]
shl eax, 5
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [ebp - 0x1c8]
movups xmmword [ecx + eax + 0x10], xmm0
inc dword [esi - 8]
mov esi, dword [ebp - 0x174]
inc edi
cmp edi, 0x20
jb 0x100498a2
add edx, 4
mov dword [ebp - 0x16c], edx
cmp edx, dword [ebp - 0x1ac]
jb 0x10049890
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x10049980
mov eax, dword [0x1011138c]
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
test eax, eax
je 0x1004996f
dec dword [eax + 0x370]
push ecx
call dword [ebp - 0x184]
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [ebp - 0x180], 1
mov dword [ebp - 0x174], esi
jne 0x100497f8
mov edi, dword [ebp - 0x194]
mov esi, dword [ebp - 0x164]
jmp 0x100499ac
xor esi, esi
mov dword [ebp - 0x164], esi
cmp dword [ebp - 0x15c], 0
jle 0x10049a1f
mov esi, dword [ebp - 0x184]
lea eax, [edi + 0x14]
mov edi, dword [ebp - 0x15c]
mov dword [ebp - 0x16c], eax
nop word [eax + eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10049a05
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x1011138c]
test eax, eax
je 0x100499f3
dec dword [eax + 0x370]
push ecx
call esi
mov eax, dword [ebp - 0x16c]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x16c], eax
sub edi, 1
jne 0x100499d0
mov edi, dword [ebp - 0x194]
mov esi, dword [ebp - 0x164]
test edi, edi
je 0x10049a5e
mov eax, dword [0x1011138c]
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1e4], 0
test eax, eax
je 0x10049a46
dec dword [eax + 0x370]
push edi
call dword [ebp - 0x184]
add esp, 4
xor eax, eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x1dc], eax
xor eax, eax
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x208], eax
test esi, esi
jle 0x10049abb
cmp esi, 8
mov edi, esi
mov ecx, 8
cmovl edi, ecx
test edi, edi
jle 0x10049abb
mov eax, dword [0x1011138c]
test eax, eax
je 0x10049a9a
inc dword [eax + 0x370]
mov eax, edi
shl eax, 4
push eax
call dword [ebp - 0x178]
add esp, 4
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x210], esi
shl esi, 4
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov edi, dword [ebp - 0x178]
mov byte [ebp - 4], 7
mov eax, dword [0x1011138c]
push 0x40000
test eax, eax
je 0x10049b02
inc dword [eax + 0x370]
call edi
mov esi, eax
add esp, 4
mov eax, dword [0x1011138c]
test eax, eax
je 0x10049b18
inc dword [eax + 0x370]
push 0x20
call edi
movss xmm0, dword [0x10109bb4]
xor ecx, ecx
mov dword [ebp - 0x17c], eax
xor edi, edi
mov dword [ebp - 0x11c], eax
add esp, 4
mov dword [eax], esi
mov eax, 1
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x120], 8
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x1a4], edi
test eax, eax
jle 0x10049ece
mov esi, dword [ebp - 0x188]
xor edx, edx
add esi, 0x48
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x1b4], esi
mov ecx, dword [eax + 0x54]
add ecx, edx
mov edx, dword [esi - 0x10]
test edx, edx
je 0x10049e95
mov eax, edi
add edi, edx
shl eax, 4
add eax, dword [ebp - 0x16c]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
mov dword [ebp - 0x1a4], edi
movss dword [ebp - 0x160], xmm1
lahf
test ah, 0x44
jnp 0x10049c20
mov byte [ebp - 0x165], 1
xor edi, edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1010a170]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.100c2530
movss xmm1, dword [ebp - 0x160]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + edi - 0x118], dl
inc edi
cmp edi, 0x100
jb 0x10049bd6
jmp 0x10049c27
mov byte [ebp - 0x165], 0
cmp dword [esi], 0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x180], 0
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1ac], ecx
jle 0x10049e95
xor ecx, ecx
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x1b8], ecx
nop dword [eax + eax]
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x30]
call fcn.1005ff20
add esp, 8
test eax, eax
je 0x10049e64
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.10060930
add esp, 0xc
test eax, eax
jne 0x10049e64
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x174], eax
je 0x10049cb3
push eax
call fcn.10067fe0
mov eax, dword [ebp - 0x174]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x10049cc2
push eax
call fcn.100680e0
add esp, 4
mov eax, dword [ebp - 0x174]
add eax, 0x18
je 0x10049e64
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [ebp - 0x160], eax
call fcn.10062e20
add esp, 8
test eax, eax
je 0x10049cf9
mov dword [ebp - 0x174], 0
jmp 0x10049d5a
mov eax, dword [esi - 0x30]
mov ecx, dword [eax + 0x54]
mov eax, dword [ecx + 0x50]
add ecx, 0x4c
mov dword [edi], eax
mov dword [ebp - 0x174], 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 [ebp - 0x160]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm0
cmp byte [ecx + 0x12], 7
sete al
mov byte [edi + 0x14], al
mov eax, dword [edi + 4]
imul eax, dword [edi]
mov edx, dword [ebp - 0x15c]
shl eax, 2
mov dword [ebp - 0x1a0], eax
add eax, edx
cmp eax, 0x40000
jle 0x10049dd5
xor eax, eax
mov dword [ebp - 0x15c], eax
mov eax, dword [0x1011138c]
test eax, eax
je 0x10049d8f
inc dword [eax + 0x370]
push 0x40000
call dword [ebp - 0x178]
add esp, 4
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x124]
push eax
call fcn.10040930
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x190], ecx
jmp 0x10049de1
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x190]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [ebp - 0x118]
add ecx, edx
add edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x15c], edx
xor edx, edx
cmp byte [ebp - 0x165], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [ebp - 0x174]
call fcn.10048b00
mov eax, dword [ebp - 0x1ac]
movzx ecx, word [edi]
movzx edx, ax
mov eax, dword [esi - 0x20]
add cx, dx
mov esi, dword [ebp - 0x164]
mov word [esi + eax + 4], cx
mov esi, dword [ebp - 0x1b4]
movzx ecx, word [edi + 4]
add cx, dx
mov edx, dword [ebp - 0x164]
mov eax, dword [esi - 0x20]
mov word [edx + eax + 6], cx
mov eax, dword [esi - 0x20]
movzx ecx, word [edx + eax + 6]
movzx eax, word [edx + eax + 4]
imul ecx, eax
add dword [ebp - 0x18c], ecx
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x1b8]
inc eax
add dword [ebp - 0x164], 0x10
add ecx, 0x20
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x1b8], ecx
cmp eax, dword [esi]
jl 0x10049c60
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x1b0]
add esi, 0x54
movss xmm0, dword [0x10109bb4]
add edx, 0x78
sub dword [ebp - 0x198], 1
mov edi, dword [ebp - 0x1a4]
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1b0], edx
jne 0x10049b91
mov ecx, dword [ebp - 0x18c]
movd xmm0, ecx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10049ee7
sqrtsd xmm0, xmm0
jmp 0x10049eec
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov edi, dword [ebp - 0x170]
cvtsd2ss xmm0, xmm0
mov esi, dword [edi + 8]
mov dword [edi + 0x20], 0
cvttss2si eax, xmm0
inc eax
test esi, esi
jg 0x10049f44
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x10109c80]
jb 0x10049f20
mov esi, 0x1000
jmp 0x10049f44
comiss xmm0, dword [0x10109c7c]
jb 0x10049f30
mov esi, 0x800
jmp 0x10049f44
comiss xmm0, dword [0x10109c70]
mov esi, 0x200
mov eax, 0x400
cmovae esi, eax
mov eax, edi
xor edx, edx
mov dword [eax + 0x1c], esi
sub esi, dword [edi + 0xc]
mov dword [ebp - 0x200], 0
mov dword [ebp - 0x1fc], edx
test esi, esi
jle 0x10049faa
cmp esi, 8
mov eax, esi
mov ecx, 8
cmovl eax, ecx
mov dword [ebp - 0x160], eax
test eax, eax
jle 0x10049faa
mov ecx, dword [0x1011138c]
test ecx, ecx
je 0x10049f89
inc dword [ecx + 0x370]
shl eax, 3
push eax
call dword [ebp - 0x178]
mov ecx, dword [ebp - 0x160]
mov edx, eax
add esp, 4
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x200], ecx
push esi
push edx
mov edx, dword [edi + 0x1c]
push ecx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x204], esi
call fcn.10048fa0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x164], eax
mov esi, dword [edi + 0x40]
mov dword [ebp - 0x15c], esi
test esi, esi
jle 0x1004a00c
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1004a00c
mov eax, dword [0x1011138c]
test eax, eax
je 0x10049ff9
inc dword [eax + 0x370]
shl ecx, 4
push ecx
call dword [ebp - 0x178]
add esp, 4
mov dword [ebp - 0x164], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x40], 0
jle 0x1004a05a
mov edx, dword [ebp - 0x164]
xor ecx, ecx
add edx, 6
xor esi, esi
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 0x1004a030
mov esi, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x164]
lea ecx, [ebp - 0x154]
push esi
call fcn.10041940
add esp, 4
test esi, esi
jle 0x1004a0cb
mov edx, dword [ebp - 0x164]
xor esi, esi
mov eax, dword [ebp - 0x15c]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x1004a0ba
mov eax, dword [edi + 0x48]
movzx ecx, word [edx - 2]
mov word [esi + eax + 4], cx
mov eax, dword [edi + 0x48]
movzx ecx, word [edx]
mov word [esi + eax + 6], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x15c]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x15c], eax
jne 0x1004a084
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x1004a0ef
mov ecx, dword [0x1011138c]
test ecx, ecx
je 0x1004a0e5
dec dword [ecx + 0x370]
push eax
call dword [ebp - 0x184]
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x19c]
test eax, eax
jle 0x1004a16a
mov esi, dword [ebp - 0x188]
add esi, 0x38
mov dword [ebp - 0x1a4], eax
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x1004a15e
mov edx, dword [esi - 0x10]
lea ecx, [ebp - 0x154]
push eax
call fcn.10041940
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x1004a15e
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0xc], 0
je 0x1004a156
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
mov eax, dword [ebp - 0x170]
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 0x1004a130
add esi, 0x54
sub dword [ebp - 0x1a4], 1
jne 0x1004a110
mov esi, dword [ebp - 0x170]
test byte [esi], 1
mov eax, dword [esi + 0x20]
jne 0x1004a19d
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 edi, dword [esi + 0x1c]
inc eax
movss xmm2, dword [0x10109bb4]
movaps xmm1, xmm2
mov dword [esi + 0x20], eax
movd xmm0, edi
cvtdq2ps xmm0, xmm0
imul edi, eax
cmp byte [ebp - 0x155], 0
divss xmm1, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x1011138c]
movss dword [esi + 0x24], xmm1
divss xmm2, xmm0
movss dword [esi + 0x28], xmm2
je 0x1004a1f9
shl edi, 2
test eax, eax
je 0x1004a1ed
inc dword [eax + 0x370]
push edi
call dword [ebp - 0x178]
mov dword [esi + 0x18], eax
jmp 0x1004a20d
test eax, eax
je 0x1004a203
inc dword [eax + 0x370]
push edi
call dword [ebp - 0x178]
mov dword [esi + 0x14], eax
add esp, 4
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x19c]
xor al, al
add esp, 0xc
mov byte [ebp - 0x165], al
test ecx, ecx
jle 0x1004a672
mov eax, dword [ebp - 0x188]
xor edx, edx
add eax, 8
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x160], ecx
nop
cmp dword [eax + 0x30], 0
je 0x1004a64b
mov ecx, dword [esi + 0x54]
movss xmm0, dword [eax - 4]
add ecx, edx
movss dword [ebp - 0x1ac], xmm0
movss xmm0, dword [eax]
mov dword [ebp - 0x1a4], ecx
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x74]
mov dword [ebp - 0x1b4], edx
movss dword [ebp - 0x1a8], xmm0
lea esi, [edx + 0x38]
lea edi, [edx + 0x48]
jne 0x1004a2d6
mov ecx, edx
call fcn.10046790
mov edx, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0x1a4]
movss xmm0, dword [ebp - 0x1ac]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
xor eax, eax
movss dword [edi], xmm0
movss xmm0, dword [ebp - 0x1a8]
mov word [esi], ax
mov eax, dword [ebp - 0x170]
mov dword [edx + 0x34], ecx
mov dword [edx + 0x30], eax
movss dword [edx + 0x4c], xmm0
movss xmm0, dword [edi]
addss xmm0, dword [0x10109b70]
inc word [esi]
mov esi, dword [ebp - 0x170]
movss xmm2, dword [ecx + 0x28]
movss dword [ebp - 0x18c], xmm2
cvttss2si eax, xmm0
mov dword [ebp - 0x1ac], 0
movd xmm1, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x174]
cmp dword [eax + 0x30], 0
addss xmm1, dword [ecx + 0x2c]
movss dword [ebp - 0x178], xmm1
jle 0x1004a638
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1b8], ecx
mov dword [ebp - 0x180], edx
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, edx
add eax, ecx
cmp word [eax + 4], 0
jne 0x1004a35f
cmp word [eax + 6], 0
je 0x1004a602
movzx edx, word [eax + 8]
sub esp, 0x20
movzx eax, word [eax + 0xa]
add eax, dword [ebp - 0x1f4]
movd xmm0, dword [edi + 8]
movd xmm7, dword [edi + 0xc]
add edx, dword [ebp - 0x1f4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x15c], eax
mov eax, dword [edi]
movd xmm3, dword [ebp - 0x15c]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x198], edx
movd xmm6, eax
add eax, edx
addss xmm0, xmm2
movd xmm4, edx
cvtdq2ps xmm7, xmm7
movd xmm2, eax
mov eax, dword [ebp - 0x15c]
addss xmm7, xmm1
movd xmm1, dword [esi + 0x1c]
add eax, ecx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm2, xmm2
movss dword [ebp - 0x1a8], xmm0
addss xmm6, xmm0
movd xmm0, dword [esi + 0x20]
divss xmm4, xmm1
divss xmm2, xmm1
movd xmm1, eax
cvtdq2ps xmm0, xmm0
movzx eax, word [edi + 0x18]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm3, xmm3
divss xmm1, xmm0
divss xmm3, xmm0
movss xmm0, dword [edi + 0x10]
movd xmm5, ecx
mov ecx, dword [ebp - 0x1b4]
cvtdq2ps xmm5, xmm5
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x18], xmm1
addss xmm5, xmm7
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [ebp - 0x1a8]
movss dword [esp + 0xc], xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm6
movss dword [esp], xmm7
push eax
push dword [ebp - 0x1a4]
call fcn.10046e20
cmp byte [edi + 0x14], 0
mov ecx, dword [ebp - 0x1b4]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x28]
lea eax, [eax + eax*4]
je 0x1004a47a
or dword [ecx + eax*8 - 0x28], 1
mov byte [ebp - 0x165], 1
mov eax, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi]
mov dword [ebp - 0x1a8], eax
imul eax, dword [ebp - 0x15c]
mov dword [ebp - 0x164], ecx
test esi, esi
je 0x1004a531
add eax, dword [ebp - 0x198]
add eax, esi
mov dword [ebp - 0x198], 0
cmp dword [edi + 4], 0
mov dword [ebp - 0x15c], eax
jle 0x1004a5ec
lea esi, [edx*4]
mov dword [ebp - 0x164], esi
lea esi, [ecx + 3]
mov dword [ebp - 0x1b0], esi
xor ecx, ecx
test edx, edx
jle 0x1004a502
nop
mov edx, dword [ebp - 0x15c]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x1004a4e0
mov eax, dword [ebp - 0x15c]
mov esi, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x198]
add eax, dword [ebp - 0x1a8]
inc ecx
add esi, dword [ebp - 0x164]
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x1b0], esi
cmp ecx, dword [edi + 4]
jl 0x1004a4d8
jmp 0x1004a5ec
mov esi, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x198]
add ecx, eax
mov dword [ebp - 0x198], 0
cmp dword [edi + 4], 0
mov eax, dword [esi + 0x18]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x15c], eax
jle 0x1004a5f2
mov ecx, dword [ebp - 0x1a8]
shl ecx, 2
mov dword [ebp - 0x1b0], ecx
lea ecx, [edx*4]
mov dword [ebp - 0x1f8], ecx
mov ecx, dword [ebp - 0x164]
xor esi, esi
test edx, edx
jle 0x1004a5c2
mov ecx, eax
mov eax, dword [ebp - 0x164]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x1a8], eax
nop dword [eax + eax]
mov eax, dword [ecx + eax]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [ebp - 0x1a8]
cmp esi, edx
jl 0x1004a5a0
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x164]
mov esi, dword [ebp - 0x198]
add eax, dword [ebp - 0x1b0]
inc esi
add ecx, dword [ebp - 0x1f8]
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x164], ecx
cmp esi, dword [edi + 4]
jl 0x1004a581
mov esi, dword [ebp - 0x170]
movss xmm2, dword [ebp - 0x18c]
movss xmm1, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x174]
inc ecx
add dword [ebp - 0x180], 0x20
add dword [ebp - 0x1b8], 0x10
mov edx, dword [ebp - 0x180]
cmp ecx, dword [eax + 0x30]
mov dword [ebp - 0x1ac], ecx
mov ecx, dword [ebp - 0x1b8]
jl 0x1004a343
mov edx, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x160]
mov dword [eax + 0x20], 0
add eax, 0x54
add edx, 0x78
sub ecx, 1
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x1a0], edx
mov dword [ebp - 0x160], ecx
jne 0x1004a250
mov al, byte [ebp - 0x165]
mov edi, dword [ebp - 0x17c]
mov byte [esi + 0x12], al
xor esi, esi
cmp dword [ebp - 0x190], esi
jle 0x1004a6ae
mov ecx, dword [edi + esi*4]
test ecx, ecx
je 0x1004a69b
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a69b
dec dword [eax + 0x370]
push ecx
call dword [ebp - 0x184]
inc esi
add esp, 4
cmp esi, dword [ebp - 0x190]
jl 0x1004a685
mov eax, dword [ebp - 0x19c]
test eax, eax
jle 0x1004a733
mov esi, dword [ebp - 0x188]
mov edi, dword [ebp - 0x184]
add esi, 0x18
nop dword [eax + eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1004a6ec
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a6e6
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x1004a708
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a702
dec dword [eax + 0x370]
push ecx
call edi
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x1004a721
push eax
call fcn.1005fa70
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub dword [ebp - 0x19c], 1
jne 0x1004a6d0
mov edi, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x188]
test ecx, ecx
je 0x1004a77c
mov eax, dword [0x1011138c]
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1f0], 0
test eax, eax
je 0x1004a760
dec dword [eax + 0x370]
mov esi, dword [ebp - 0x184]
push ecx
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x1e8], eax
jmp 0x1004a782
mov esi, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x170]
call fcn.10046400
mov byte [ebp - 0x155], 1
mov ecx, dword [ebp - 0x1fc]
test ecx, ecx
je 0x1004a7b3
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a7ad
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
test edi, edi
je 0x1004a7cc
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a7c6
dec dword [eax + 0x370]
push edi
call esi
add esp, 4
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
je 0x1004a7eb
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a7e5
dec dword [eax + 0x370]
push ecx
call esi
add esp, 4
mov edi, dword [ebp - 0x194]
test edi, edi
je 0x1004a812
mov eax, dword [0x1011138c]
test eax, eax
je 0x1004a804
dec dword [eax + 0x370]
mov esi, dword [ebp - 0x184]
push edi
call esi
add esp, 4
jmp 0x1004a818
mov esi, dword [ebp - 0x184]
mov eax, dword [ebp - 0x188]
test eax, eax
je 0x1004a838
mov ecx, dword [0x1011138c]
test ecx, ecx
je 0x1004a832
dec dword [ecx + 0x370]
push eax
call esi
add esp, 4
mov al, byte [ebp - 0x155]
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.100c100d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret