Function at 0x1005dae0
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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100e0e8c
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1d0
push esi
mov esi, dword [ebx + 8]
push edi
cmp dword [esi + 0x58], 0
jge 0x1005db6e
test byte [esi + 4], 2
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x74], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], closesocket
push eax
mov dword [ebp - 0x78], 0x1b00d9
je 0x1005db62
mov dword [ebp - 0x78], 0x20002
call fcn.10060a40
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x14]
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
test eax, eax
je 0x1005dbaf
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1005dbbf
push eax
call fcn.100512c0
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x50], edx
mov dword [ebp - 0xc0], edx
xor edi, edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x90], edi
mov ecx, dword [esi + 0x4c]
lea edx, [edi + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jle 0x1005dc4c
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x1005dc4c
imul eax, eax, 0xc4
push eax
call fcn.10051290
mov ecx, dword [ebp - 0x18]
lea edx, [edi + 8]
mov dword [ebp - 0xc4], ecx
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xc0], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x1005dc8e
cmp eax, 8
mov esi, eax
cmovl esi, edx
test esi, esi
jle 0x1005dc8e
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10051290
mov ecx, dword [ebp - 0x4c]
mov edi, eax
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], esi
mov esi, dword [ebp - 0x50]
imul ecx, ecx, 0xc4
mov dword [ebp - 0x98], eax
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x20]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 8]
add esp, 0x18
mov dword [ebp - 0x3c], 0
cmp dword [eax + 0x4c], 0
jle 0x1005dddf
xor edx, edx
add esi, 0xa4
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], esi
nop dword [eax]
mov ecx, dword [eax + 0x54]
add ecx, edx
mov dword [esi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x30], ecx
cmp dword [eax + 0x34], edx
jle 0x1005de30
or ecx, 0xffffffff
nop dword [eax]
cmp ecx, 0xffffffff
jne 0x1005dd2f
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x1005dd1a
mov dword [esi - 4], edx
mov ecx, edx
jmp 0x1005dd1d
mov ecx, dword [esi - 4]
mov eax, dword [ebx + 8]
inc edx
cmp edx, dword [eax + 0x34]
jl 0x1005dd00
cmp ecx, 0xffffffff
je 0x1005de30
mov eax, dword [ebp - 0x30]
push dword [eax + 0xc]
mov esi, dword [eax]
push esi
call fcn.10067370
mov ecx, dword [ebp - 0x1c]
push eax
add ecx, 0xffffff5c
push esi
push ecx
mov dword [ebp - 0x18], ecx
call fcn.10061840
add esp, 0x14
test eax, eax
je 0x1005de30
mov eax, dword [ebp - 0x18]
mov edx, 0x100ec9b4
mov esi, dword [ebp - 0x1c]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x1005dda5
movzx eax, word [edx + 2]
test ax, ax
je 0x1005dda2
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x1005dd87
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [ebx + 8]
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 - 0x3c]
mov edx, dword [ebp - 0x2c]
inc ecx
add edx, 0x78
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], edx
cmp ecx, dword [eax + 0x4c]
jl 0x1005dce0
mov eax, dword [ebp - 0x4c]
xor esi, esi
mov dword [ebp - 0x44], esi
test eax, eax
jle 0x1005e1a8
mov edx, dword [ebp - 0x50]
add edx, 0xb4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], edx
nop
mov eax, dword [edx - 0x14]
mov ecx, dword [edx - 0x10]
add ecx, 0x20
sar ecx, 5
lea esi, [eax + eax*2]
mov dword [ebp - 0x24], ecx
mov eax, dword [edx - 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], eax
cmp ecx, eax
jle 0x1005de96
test eax, eax
je 0x1005de39
cdq
sub eax, edx
mov edx, dword [ebp - 0x14]
sar eax, 1
add eax, dword [ebp - 0x18]
jmp 0x1005de3e
mov byte [ebp - 0x35], 0
jmp 0x1005eef1
mov eax, 8
cmp eax, ecx
mov edi, ecx
cmovg edi, eax
mov eax, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x40]
cmp eax, dword [edx - 4]
jle 0x1005de96
shl eax, 2
push eax
call fcn.10051290
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [edx], 0
je 0x1005de8b
mov ecx, dword [edx - 8]
shl ecx, 2
push ecx
push dword [edx]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.100512c0
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [edx - 4], eax
lea eax, [ecx*4]
mov dword [edx - 8], ecx
push eax
push 0
push dword [edx]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + esi*8 + 0xc], 0
jne 0x1005df57
mov ecx, dword [edi + esi*8 + 4]
mov eax, dword [edi + esi*8 + 0x10]
add ecx, 0x20
sar ecx, 5
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jle 0x1005df3d
test eax, eax
je 0x1005dede
cdq
sub eax, edx
mov edx, dword [edi + esi*8 + 0x10]
sar eax, 1
add eax, edx
jmp 0x1005dee7
mov edx, dword [edi + esi*8 + 0x10]
mov eax, 8
cmp eax, ecx
mov edi, ecx
cmovg edi, eax
mov eax, edi
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x40]
cmp eax, edx
jle 0x1005df3d
shl eax, 2
push eax
call fcn.10051290
mov edx, dword [edi + esi*8 + 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1005df2f
mov ecx, dword [edi + esi*8 + 0xc]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + esi*8 + 0x14]
call fcn.100512c0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x24]
mov dword [edi + esi*8 + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + esi*8 + 0x10], eax
lea eax, [ecx*4]
mov dword [edi + esi*8 + 0xc], ecx
push eax
push 0
push dword [edi + esi*8 + 0x14]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 0x18]
mov dword [ebp - 0x1c], eax
movzx ecx, word [eax]
test cx, cx
je 0x1005e00c
nop dword [eax]
movzx eax, word [eax + 2]
test ax, ax
je 0x1005e009
movzx edi, cx
cmp edi, eax
ja 0x1005dff4
mov eax, dword [ebp - 0x30]
mov ecx, edi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov esi, edi
mov ecx, dword [ebp - 0x40]
sar esi, 5
mov dword [ebp - 0x18], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x1005dfe5
mov eax, dword [ebp - 0x14]
add eax, 0xffffff4c
push edi
push eax
call fcn.10067060
mov edx, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x1005dfe8
inc dword [edx - 0xc]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x44]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
inc edi
movzx eax, word [eax + 2]
cmp edi, eax
jle 0x1005df84
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
movzx ecx, word [eax]
test cx, cx
jne 0x1005df70
mov edi, dword [ebp - 0x40]
add edx, 0xc4
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], edx
jne 0x1005de00
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
add esi, 0xb8
mov dword [ebp - 0x34], eax
nop
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x1005e073
lea eax, [edi*4]
push eax
call fcn.10051290
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1005e06d
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.100512c0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x3c], ecx
lea eax, [ecx + eax*4]
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jae 0x1005e16d
xor edx, edx
mov dword [ebp - 0x2c], edx
nop
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1005e158
xor ecx, ecx
mov edi, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edi
nop word [eax + eax]
test edi, eax
je 0x1005e143
and edx, 0xffffffe0
add edx, ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x24], edx
mov edx, dword [esi]
mov dword [ebp - 0x18], edx
cmp edx, ecx
jne 0x1005e12f
lea edi, [edx + 1]
test ecx, ecx
je 0x1005e0e1
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
sar eax, 1
add eax, ecx
jmp 0x1005e0e6
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1005e12c
lea eax, [edi*4]
push eax
call fcn.10051290
mov edx, dword [esi + 8]
add esp, 4
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1005e124
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [esi + 8]
call fcn.100512c0
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov edx, dword [esi]
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov edi, dword [ebp - 0x30]
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + edx*4], ecx
inc dword [esi]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
inc ecx
rol edi, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], edi
cmp ecx, 0x20
jl 0x1005e0b0
mov ecx, dword [ebp - 0x3c]
add ecx, 4
add edx, 0x20
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], edx
cmp ecx, dword [ebp - 0x1c]
jb 0x1005e090
mov eax, dword [esi - 4]
test eax, eax
je 0x1005e192
push eax
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
call fcn.100512c0
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [ebp - 0x34], 1
jne 0x1005e030
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
cmp dword [ebp - 0x20], 0
jle 0x1005e1e5
lea esi, [edi + 0x14]
mov edi, dword [ebp - 0x20]
mov eax, dword [esi]
test eax, eax
je 0x1005e1d7
push eax
mov dword [esi - 4], 0
mov dword [esi - 8], 0
call fcn.100512c0
add esp, 4
mov dword [esi], 0
add esi, 0x18
sub edi, 1
jne 0x1005e1b4
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
test edi, edi
je 0x1005e211
push edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
call fcn.100512c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 7
mov eax, 8
test esi, esi
jle 0x1005e27f
cmp esi, eax
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1005e27f
mov eax, edi
shl eax, 4
push eax
call fcn.10051290
mov dword [ebp - 0x44], eax
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, 8
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], esi
test esi, esi
jle 0x1005e2b9
cmp esi, 8
mov edi, esi
cmovl edi, eax
test edi, edi
jle 0x1005e2b9
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
call fcn.10051290
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], edi
mov ecx, esi
mov dword [ebp - 0xd4], esi
shl ecx, 4
push ecx
push 0
push dword [ebp - 0x44]
call sub.VCRUNTIME140.dll_memset
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [ebp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x4c]
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 0x20], ecx
add esp, 0x18
mov dword [ebp - 0x18], esi
test edx, edx
jle 0x1005e51e
mov edi, dword [ebp - 0x50]
add edi, 0x98
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1005e504
add dword [ebp - 0x20], edx
mov eax, ecx
mov ecx, dword [ebp - 0x30]
shl eax, 4
add eax, dword [ebp - 0x44]
mov dword [edi - 4], eax
lea eax, [esi*8]
sub eax, esi
add esi, edx
mov dword [ebp - 0x18], esi
lea ecx, [ecx + eax*4]
mov eax, dword [ebx + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0x54]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], 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 [0x100e42f0]
jbe 0x1005e3d8
mov edx, dword [edi - 0x7c]
mov eax, 0x100
mov edi, dword [edi - 0x94]
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 0x7c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
mov edi, dword [ebp - 0x34]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
movd xmm0, eax
jmp 0x1005e3fe
mov ecx, dword [edi - 0x84]
mov eax, dword [edi - 0x94]
xorps xmm1, xmmword [0x100e4350]
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 [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + 0x10]
divss xmm1, xmm0
mov dword [ebp - 0x34], eax
movss dword [ebp - 0x54], xmm1
cmp dword [edi + 0x20], ecx
jle 0x1005e4fe
mov dword [ebp - 0x3c], ecx
mov eax, dword [edi + 0x28]
lea esi, [edi - 0x98]
push dword [eax + ecx*4]
push esi
call fcn.10067060
add esp, 8
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x1c]
sub esp, 0x10
movd xmm0, dword [ecx + 0x18]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mulss xmm0, xmm1
movss dword [esp + 4], xmm0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp], xmm0
push eax
push esi
call fcn.10067400
mov eax, dword [ebp - 0x34]
add esp, 0x28
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x3c]
dec cx
movzx edx, ax
mov eax, dword [ebp - 0x1c]
movss xmm1, dword [ebp - 0x54]
add cx, word [eax + 0x14]
mov eax, dword [edi - 4]
add cx, dx
mov word [eax + esi + 4], cx
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x1c]
dec cx
add cx, word [eax + 0x18]
mov eax, dword [edi - 4]
add cx, dx
mov word [eax + esi + 6], cx
mov eax, dword [edi - 4]
movzx ecx, word [eax + esi + 6]
movzx eax, word [eax + esi + 4]
add esi, 0x10
imul ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], esi
add eax, ecx
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
cmp ecx, dword [edi + 0x20]
jl 0x1005e424
jmp 0x1005e501
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x2c], 0x78
add edi, 0xc4
sub dword [ebp - 0x24], 1
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x34], edi
jne 0x1005e315
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1005e537
sqrtsd xmm0, xmm0
jmp 0x1005e53c
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov esi, dword [ebx + 8]
cvtsd2ss xmm0, xmm0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x1005e591
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x100ec9f8]
jb 0x1005e56d
mov eax, 0x1000
jmp 0x1005e591
comiss xmm0, dword [0x100ec9f4]
jb 0x1005e57d
mov eax, 0x800
jmp 0x1005e591
comiss xmm0, dword [0x100ec9f0]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
push 0x2c
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x8c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x1c]
push 0x30
mov dword [ebp - 0x18], eax
call fcn.10051290
mov edi, eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x48], eax
lea ecx, [eax*8]
push ecx
call fcn.10051290
add esp, 0x14
test edi, edi
je 0x1005e629
test eax, eax
je 0x1005e626
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp - 0x48]
push ecx
push eax
mov dword [ebp - 0x64], eax
mov eax, 0x8000
sub eax, edx
mov dword [ebp - 0x88], edi
push eax
push ecx
push edi
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x74], 0
call fcn.10066d10
add esp, 0x14
jmp 0x1005e63f
push edi
jmp 0x1005e62e
test eax, eax
je 0x1005e636
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xd8], eax
mov edi, dword [esi + 0x40]
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], edi
test edi, edi
jle 0x1005e68c
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x1005e68c
shl ecx, 4
push ecx
call fcn.10051290
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, edi
shl ecx, 4
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x40], 0
jle 0x1005e6d7
mov edx, dword [ebp - 0x20]
xor ecx, ecx
add edx, 6
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0x48]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [esi + 0x48]
movzx eax, word [ecx + eax - 0x16]
mov word [edx - 0x10], ax
cmp edi, dword [esi + 0x40]
jl 0x1005e6b0
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call fcn.10066e80
add esp, 0xc
test edi, edi
jle 0x1005e736
mov edx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ebp - 0x1c]
add edx, 0xa
cmp dword [edx + 2], 0
je 0x1005e728
mov eax, dword [esi + 0x48]
movzx ecx, word [edx - 2]
mov word [edi + eax + 8], cx
mov eax, dword [esi + 0x48]
movzx ecx, word [edx]
mov word [edi + eax + 0xa], cx
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
add edi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [ebp - 0x1c], eax
jne 0x1005e6f5
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 9
test eax, eax
je 0x1005e74a
push eax
call fcn.100512c0
add esp, 4
mov edi, dword [ebp - 0x4c]
mov byte [ebp - 4], 7
test edi, edi
jle 0x1005e7c1
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
add edi, 0xa8
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
test eax, eax
je 0x1005e7b2
push eax
push dword [edi - 0x14]
push dword [ebp - 0x14]
call fcn.10066e80
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x18], ecx
cmp dword [edi], ecx
jle 0x1005e7b2
xor edx, edx
mov eax, dword [edi - 0x14]
cmp dword [edx + eax + 0xc], 0
je 0x1005e7a7
movzx ecx, word [edx + eax + 0xa]
movzx eax, word [edx + eax + 6]
add ecx, eax
cmp dword [esi + 0x20], ecx
cmovge ecx, dword [esi + 0x20]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 0x18]
inc ecx
add edx, 0x10
mov dword [ebp - 0x18], ecx
cmp ecx, dword [edi]
jl 0x1005e784
add edi, 0xc4
sub dword [ebp - 0x24], 1
jne 0x1005e764
mov edi, dword [ebp - 0x4c]
test byte [esi + 4], 1
mov eax, dword [esi + 0x20]
jne 0x1005e7ef
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 [0x100e4318]
lea ecx, [eax + 1]
mov eax, dword [esi + 0x1c]
movaps xmm2, xmm1
mov dword [esi + 0x20], ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm1, xmm0
push ecx
movss dword [esi + 0x24], xmm2
movss dword [esi + 0x28], xmm1
call fcn.10051290
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x80], eax
test edi, edi
jle 0x1005e9e5
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edi
nop word [eax + eax]
mov edi, dword [esi + 0x54]
add edi, eax
cmp dword [ecx + 0xa8], 0
je 0x1005e9be
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
push 1
push eax
push ecx
lea eax, [ebp - 0x8c]
push eax
call fcn.10067950
movss xmm1, dword [edi + 0x44]
add esp, 0x14
ucomiss xmm1, dword [0x100e4318]
movss dword [ebp - 0x48], xmm1
lahf
test ah, 0x44
jnp 0x1005e9ab
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100e6200]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.100dc740
movss xmm1, dword [ebp - 0x48]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + esi - 0x1e0], dl
inc esi
cmp esi, 0x100
jb 0x1005e8c0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x34], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x1005eb65
lea ecx, [edx + 6]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
cmp dword [ecx + 6], 0
je 0x1005e996
mov eax, dword [ebx + 8]
movzx edx, word [ecx + 4]
movzx edi, word [ecx]
movzx esi, word [ecx - 2]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
movzx eax, word [ecx + 2]
imul edx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 8]
add edx, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x1c]
add edx, eax
test edi, edi
je 0x1005e990
mov eax, dword [ebp - 0x2c]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x1005e986
nop word [eax + eax]
movzx eax, byte [ecx + edx]
mov al, byte [ebp + eax - 0x1e0]
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x1005e970
mov eax, dword [ebp - 0x2c]
dec edi
add edx, eax
test edi, edi
jg 0x1005e960
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
inc eax
add ecx, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [edx + 0xa8]
jl 0x1005e928
mov esi, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
jne 0x1005e870
mov eax, dword [ebp - 0x88]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x64]
call fcn.100512c0
push dword [ebp - 0x14]
call fcn.100512c0
mov eax, dword [ebp - 0x44]
add esp, 8
test eax, eax
je 0x1005ea27
push eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa4], 0
call fcn.100512c0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x9c], eax
test edi, edi
jle 0x1005eeb9
mov ecx, dword [ebp - 0x50]
xor edx, edx
movss xmm4, dword [0x100e4310]
add ecx, 4
mov eax, edi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
nop word [eax + eax]
cmp dword [ecx + 0xa4], 0
je 0x1005ee52
mov eax, dword [esi + 0x54]
xorps xmm6, xmm6
mov esi, dword [ecx + 0x18]
add eax, edx
mov edx, dword [ecx]
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [esi + edx + 6]
mov dword [ebp - 0x2c], eax
mov eax, 0x100
cwde
movsx ecx, cx
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 - 0x20]
add cx, ax
movss xmm2, dword [edx + 0x10]
movsx ecx, cx
mov eax, ecx
sub eax, edi
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
xor eax, eax
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm6
divss xmm2, xmm0
seta al
lea eax, [eax*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
addss xmm0, xmm1
movd xmm1, edi
cvtdq2ps xmm1, xmm1
mov edi, dword [ebp - 0x2c]
cvttss2si eax, xmm0
movd xmm0, eax
xor eax, eax
comiss xmm1, xmm6
cvtdq2ps xmm0, xmm0
seta al
cmp byte [edx + 0x3c], 0
mulss xmm1, xmm2
lea eax, [eax*2 - 1]
movss dword [ebp - 0x48], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si esi, xmm0
jne 0x1005eb6d
mov ecx, edi
call fcn.1005d550
mov edx, dword [ebp - 0x20]
xorps xmm6, xmm6
movss xmm0, dword [ebp - 0x48]
movss xmm4, dword [0x100e4310]
movd xmm1, esi
mov eax, dword [edx + 0x10]
cvtdq2ps xmm1, xmm1
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0x3c], edx
mov dword [edi + 0x38], eax
movss dword [edi + 0x48], xmm0
movss dword [edi + 0x4c], xmm1
jmp 0x1005eb72
mov esi, dword [ebx + 8]
jmp 0x1005e9ae
movss xmm0, dword [edi + 0x48]
inc word [edi + 0x40]
addss xmm0, xmm4
mov ecx, dword [ebp - 0x14]
movss xmm2, dword [edx + 0x28]
movss dword [ebp - 0xb8], xmm2
mov dword [ebp - 0x34], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm5, eax
cvtdq2ps xmm5, xmm5
addss xmm5, dword [edx + 0x2c]
movss dword [ebp - 0xbc], xmm5
jle 0x1005ee49
xor esi, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebx + 8]
nop
mov eax, dword [ecx + 0xbc]
mov edi, dword [ebp - 0x34]
movss xmm0, dword [edx + 0x34]
movss dword [ebp - 0x18], xmm0
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x94]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
movss xmm1, dword [ecx + eax + 0x10]
comiss xmm0, xmm1
ja 0x1005ebfe
movss xmm0, dword [edx + 0x38]
minss xmm0, xmm1
movss dword [ebp - 0x18], xmm0
mov edi, dword [ebp - 0x2c]
movaps xmm3, xmm2
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1005ec2d
cmp byte [edx + 0x1c], 0
movaps xmm3, xmm0
subss xmm3, xmm1
mulss xmm3, xmm4
je 0x1005ec29
cvttss2si eax, xmm3
movd xmm3, eax
cvtdq2ps xmm3, xmm3
addss xmm3, xmm2
movd xmm0, dword [esi + 0x1c]
movss xmm2, dword [0x100e4318]
cvtdq2ps xmm0, xmm0
mov edx, dword [ebp - 0x48]
movzx eax, word [ecx + edx]
movaps xmm1, xmm2
divss xmm1, xmm0
movd xmm0, dword [esi + 0x20]
cvtdq2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 2]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0x54], xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 4]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [ebp - 0xa8], xmm0
movd xmm0, eax
movzx eax, word [ecx + edx + 6]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [ebp - 0xac], xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + 0x20]
inc eax
push eax
mulss xmm0, xmm2
movss dword [ebp - 0xb0], xmm0
movss xmm0, dword [ecx + edx + 8]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ecx + edx + 0xc]
addss xmm0, xmm6
addss xmm0, xmm5
movss dword [ebp - 0x58], xmm0
movss xmm0, dword [ecx + edx + 0x14]
addss xmm0, xmm6
addss xmm0, xmm3
movss dword [ebp - 0x60], xmm0
movss xmm0, dword [ecx + edx + 0x18]
lea ecx, [edi + 0x20]
addss xmm0, xmm6
addss xmm0, xmm5
movss dword [ebp - 0x24], xmm0
call fcn.10060e50
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
movss xmm0, dword [ebp - 0x48]
movss xmm4, dword [0x100e4310]
lea edx, [eax + eax*4]
mov dword [ebp - 0xb4], ecx
mov eax, dword [ebp - 0x5c]
movss dword [ecx + edx*8 - 0x20], xmm0
movss xmm0, dword [ebp - 0x58]
movss dword [ecx + edx*8 - 0x1c], xmm0
movss xmm0, dword [ebp - 0x60]
movss dword [ecx + edx*8 - 0x18], xmm0
movss xmm0, dword [ebp - 0x24]
movss dword [ecx + edx*8 - 0x14], xmm0
movss xmm0, dword [ebp - 0x54]
movss dword [ecx + edx*8 - 0x10], xmm0
movss xmm0, dword [ebp - 0xa8]
movss dword [ecx + edx*8 - 0xc], xmm0
movss xmm0, dword [ebp - 0xac]
movss dword [ecx + edx*8 - 8], xmm0
movss xmm0, dword [ebp - 0xb0]
movss dword [ecx + edx*8 - 4], xmm0
movss xmm0, dword [ebp - 0x18]
mov word [ecx + edx*8 - 0x28], ax
mov eax, dword [edi + 0x3c]
addss xmm0, dword [eax + 0x20]
movss dword [ecx + edx*8 - 0x24], xmm0
mov eax, dword [edi + 0x3c]
cmp byte [eax + 0x1c], 0
je 0x1005edb9
addss xmm0, xmm4
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ecx + edx*8 - 0x24], xmm0
mov eax, dword [edi + 0x38]
xorps xmm6, xmm6
mov esi, dword [ebp - 0xb4]
mov byte [edi + 0x54], 1
movss xmm0, dword [ecx + edx*8 - 8]
movd xmm1, dword [eax + 0x1c]
subss xmm0, dword [ecx + edx*8 - 0x10]
cvtdq2ps xmm1, xmm1
add dword [ebp - 0x1c], 0x1c
movss xmm2, dword [ebp - 0xb8]
mulss xmm1, xmm0
movd xmm0, dword [eax + 0x20]
cvtdq2ps xmm0, xmm0
addss xmm1, dword [0x100ec9e4]
movss xmm5, dword [ebp - 0xbc]
cvttss2si ecx, xmm1
movss xmm1, dword [esi + edx*8 - 4]
subss xmm1, dword [esi + edx*8 - 0xc]
mov esi, dword [ebx + 8]
mov edx, dword [ebp - 0x20]
mulss xmm1, xmm0
addss xmm1, dword [0x100ec9e4]
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
add dword [edi + 0x50], ecx
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0xa4]
jl 0x1005ebc0
jmp 0x1005ee4c
mov esi, dword [ebx + 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
add ecx, 0xc4
add edx, 0x78
sub eax, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], eax
jne 0x1005ea50
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
add edi, 0xb4
nop dword [eax]
mov eax, dword [edi + 0xc]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x1005ee94
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [edi]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1005eea7
push eax
call fcn.100512c0
add esp, 4
add edi, 0xc4
mov byte [ebp - 4], 7
sub esi, 1
jne 0x1005ee80
mov esi, dword [ebx + 8]
push esi
call fcn.1005d8b0
add esp, 4
mov byte [ebp - 0x35], 1
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x1005eeda
push eax
call fcn.100512c0
add esp, 4
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x1005eeee
push eax
call fcn.100512c0
add esp, 4
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 0xe
test edi, edi
je 0x1005ef02
push edi
call fcn.100512c0
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 0xf
test eax, eax
je 0x1005ef19
push eax
call fcn.100512c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x35]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret