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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [edi + 0x58]
mov dword [esp + 0xc], eax
mov esi, dword [edx]
cmp esi, edx
je 0x100605f0
jmp 0x1005fd70
cmp dword [esi + 0x6c], 0
jne 0x100605a3
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x100605a3
mov ecx, dword [ebp + 8]
movzx edx, byte [esi + 0x10]
cmp byte [edx + ecx], 0
mov ecx, dword [esp + 0xc]
je 0x1006052a
cmp byte [esi + 0x18], 0
jne 0x100600e6
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], edi
movdqu xmm0, xmmword [esp + 0x20]
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], ecx
mov eax, dword [eax + 0x6f0]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
movdqu xmmword [esp + 0x60], xmm0
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 3
idiv ecx
mov eax, 1
sub eax, edx
movd xmm0, eax
mov eax, dword [esp + 0x30]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
add eax, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], eax
call dword [sym.imp.MSVCR120.dll_rand]
cdq
mov ecx, 3
idiv ecx
mov eax, 1
mov edi, dword [esi + 0x68]
sub eax, edx
movd xmm0, eax
mov eax, dword [esp + 0x30]
cvtdq2pd xmm0, xmm0
movd xmm1, dword [eax + 0x10]
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
add dword [esp + 0x68], eax
lea eax, [esp + 0x1c]
movdqu xmm0, xmmword [esp + 0x60]
push eax
push dword [edi + 4]
movdqu xmmword [esp + 0x28], xmm0
push edi
call fcn.10033f10
mov edx, eax
mov ecx, 0x9249248
mov eax, dword [esi + 0x6c]
sub ecx, eax
cmp ecx, 1
jb 0x100605f8
lea ecx, [eax + 1]
mov dword [esi + 0x6c], ecx
mov dword [edi + 4], edx
mov eax, dword [edx + 4]
mov edi, dword [esp + 0x3c]
mov ecx, edi
mov dword [eax], edx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x8c]
add eax, 0x13
push eax
push dword [ebp + 8]
lea eax, [esp + 0x88]
push eax
call fcn.10059d30
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
test ecx, ecx
je 0x1005ff0d
test eax, eax
je 0x1005ff0d
movsd xmm2, qword [0x100ce180]
jmp 0x1005ff15
movsd xmm2, qword [0x100ce1c0]
imul ecx, dword [esp + 0x30]
movd xmm0, dword [esp + 0x10]
imul eax, dword [esp + 0x30]
cvtdq2pd xmm0, xmm0
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, dword [esp + 0x18]
cvtdq2pd xmm0, xmm0
cvttsd2si edx, xmm1
movd xmm1, eax
sub edx, dword [esp + 0x40]
cvtdq2pd xmm1, xmm1
mov dword [esp + 0x18], edx
mulsd xmm1, xmm2
addsd xmm1, xmm0
cvttsd2si eax, xmm1
sub eax, dword [esp + 0x68]
mov ecx, eax
mov dword [esp + 0x10], eax
imul ecx, eax
mov eax, edx
imul eax, edx
add ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
movapd xmm2, xmm0
comisd xmm2, xmmword [0x100ce280]
jbe 0x100600b9
movd xmm0, dword [esp + 0x10]
mov edi, 2
movd xmm1, dword [esp + 0x18]
cvtdq2ps xmm1, xmm1
mov eax, dword [esp + 0xc]
add eax, 8
mov dword [esp + 0x30], eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
divsd xmm1, xmm2
divsd xmm0, xmm2
cvtpd2ps xmm3, xmm1
cvtpd2ps xmm4, xmm0
movss dword [esp + 0x38], xmm3
movss dword [esp + 0x10], xmm4
lea ebx, [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
movd xmm2, edi
cvtdq2pd xmm2, xmm2
mov ecx, dword [eax + 0x6f0]
movd xmm1, dword [ecx + 0x10]
movd xmm0, dword [ecx + 0xf24]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
divsd xmm1, xmm0
cvtps2pd xmm0, xmm3
mulsd xmm1, xmm0
movd xmm0, dword [ecx + 0xf24]
cvtdq2pd xmm0, xmm0
cvttsd2si eax, xmm1
movd xmm1, dword [ecx + 0x10]
lea ecx, [esp + 0x1c]
cvtdq2pd xmm1, xmm1
add eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
push ecx
mulsd xmm1, xmm2
divsd xmm1, xmm0
cvtps2pd xmm0, xmm4
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
add eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x1c], eax
push dword [eax + 4]
push eax
call fcn.10033f10
mov edx, eax
mov ecx, 0x9249248
mov eax, dword [esi + 0x6c]
sub ecx, eax
cmp ecx, 1
jb 0x100605f8
movss xmm3, dword [esp + 0x38]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x18]
add edi, 2
movss xmm4, dword [esp + 0x10]
mov dword [esi + 0x6c], ecx
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [esp + 0x30]
add eax, 0x10
mov dword [esp + 0x30], eax
cmp edi, 8
jl 0x1005ffe0
mov edi, dword [esp + 0x3c]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 4]
movd xmm0, dword [eax + 0x10]
cvtdq2pd xmm0, xmm0
movsd qword [esi + 0x48], xmm0
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 4]
movd xmm0, dword [eax + 0x14]
cvtdq2pd xmm0, xmm0
movsd qword [esi + 0x50], xmm0
jmp 0x100605a3
add eax, 0x13
cmp byte [esi + 0x40], 0
jne 0x100601bf
push dword [esi + 0x24]
mov ecx, edi
push dword [esi + 0x20]
push dword [esi + 0x28]
push eax
push dword [ebp + 8]
lea eax, [esp + 0x5c]
push eax
call fcn.1005a110
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esi + 0x20]
jne 0x10060122
mov eax, dword [esp + 0x4c]
cmp eax, dword [esi + 0x24]
je 0x100605a3
mov eax, dword [esp + 0xc]
mov edx, str.com.tencent.KiHan
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x6f0]
mov dword [esp + 0x1c], eax
add ecx, 0xedc
movzx eax, byte [esi + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 1
call fcn.10011a60
test al, al
je 0x10060193
mov eax, dword [edi + 0x6f0]
movd xmm2, dword [esp + 0x4c]
cvtdq2pd xmm2, xmm2
movd xmm1, dword [eax + 0x10]
movd xmm0, dword [eax + 0xf24]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm1, qword [0x100ce280]
divsd xmm1, xmm0
subsd xmm2, xmm1
cvttsd2si eax, xmm2
jmp 0x10060197
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 0x6f0]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.1001f620
push eax
lea ecx, [esi + 0x68]
call fcn.100305d0
jmp 0x100605a3
cvttsd2si ecx, qword [esi + 0x48]
push eax
lea eax, [esp + 0x7c]
push dword [ebp + 8]
mov dword [esp + 0x40], ecx
cvttsd2si ecx, qword [esi + 0x50]
push eax
mov dword [esp + 0x24], ecx
mov ecx, edi
call fcn.10059d30
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
test ecx, ecx
je 0x100601fb
test eax, eax
je 0x100601fb
movsd xmm2, qword [0x100ce180]
jmp 0x10060203
movsd xmm2, qword [0x100ce1c0]
movsd xmm1, qword [esi + 0x58]
movd xmm0, ecx
movsd qword [esp + 0x50], xmm1
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm2
mulsd xmm1, qword [esi + 0x60]
movsd qword [esp + 0x90], xmm0
mulsd xmm1, xmm2
movsd qword [esp + 0x88], xmm1
test ecx, ecx
jne 0x1006024d
test eax, eax
je 0x100604e1
movd xmm6, dword [esi + 0x20]
movsd xmm2, qword [esi + 0x48]
movd xmm4, dword [esi + 0x24]
movapd xmm3, xmm2
cvtdq2pd xmm6, xmm6
cvtdq2pd xmm4, xmm4
subsd xmm3, xmm6
addsd xmm2, xmm0
movsd qword [esp + 0x60], xmm4
movsd qword [esp + 0x40], xmm3
movsd xmm3, qword [esi + 0x50]
movapd xmm5, xmm3
movsd qword [esp + 0xa8], xmm2
addsd xmm3, xmm1
subsd xmm2, xmm6
subsd xmm5, xmm4
movaps xmm1, xmm3
movsd qword [esp + 0x58], xmm3
subsd xmm1, xmm4
movsd qword [esp + 0xa0], xmm2
movsd qword [esp + 0x30], xmm5
movaps xmm0, xmm1
movsd qword [esp + 0x98], xmm1
mulsd xmm0, xmm1
movaps xmm1, xmm2
mulsd xmm1, xmm2
addsd xmm0, xmm1
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
movsd xmm2, qword [esp + 0x40]
movsd qword [esp + 0x10], xmm0
movaps xmm1, xmm2
movsd xmm0, qword [esp + 0x30]
mulsd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm0, xmm1
call sub.MSVCR120.dll__libm_sse2_sqrt_precise
movd xmm2, dword [esi + 0x28]
cvtdq2pd xmm2, xmm2
movapd xmm1, xmm2
mulsd xmm1, qword [0x100ce1b0]
comisd xmm1, xmm0
movsd xmm0, qword [esp + 0x10]
jbe 0x10060323
comisd xmm0, xmm2
ja 0x10060329
comisd xmm2, xmm0
jbe 0x10060342
movsd xmm0, qword [esp + 0xa8]
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [esp + 0x58]
jmp 0x100604dc
movsd xmm1, qword [esp + 0x40]
movsd xmm0, qword [esp + 0x30]
call fcn.1005fd00
movsd xmm1, qword [esp + 0xa0]
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [esp + 0x98]
call fcn.1005fd00
movd xmm1, dword [esi + 0x28]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x50]
mulsd xmm0, qword [0x100ce140]
cvtdq2pd xmm1, xmm1
divsd xmm0, xmm1
call sub.MSVCR120.dll__libm_sse2_asin_precise
movsd xmm2, qword [esp + 0x58]
movapd xmm1, xmm0
movsd xmm0, qword [esp + 0x10]
mulsd xmm1, qword [0x100ce240]
movapd xmm3, xmm0
subsd xmm3, xmm2
movsd qword [esp + 0x40], xmm1
andpd xmm3, xmmword [0x100ce6d0]
comisd xmm3, xmmword [0x100ce068]
jbe 0x1006048e
comisd xmm0, xmm2
jbe 0x10060420
comisd xmm3, xmmword [0x100ce260]
jbe 0x100603eb
movaps xmm0, xmm2
subsd xmm0, xmm1
jmp 0x100603f3
movapd xmm0, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [esp + 0x90]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x88]
call fcn.1005fd00
movapd xmm3, xmm0
movsd xmm0, qword [esp + 0x10]
comisd xmm0, xmm3
jmp 0x10060466
comisd xmm3, xmmword [0x100ce260]
jbe 0x10060434
movapd xmm0, xmm1
addsd xmm0, xmm2
jmp 0x1006043b
movaps xmm0, xmm2
subsd xmm0, xmm1
movsd xmm1, qword [esp + 0x90]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x88]
call fcn.1005fd00
movapd xmm3, xmm0
movsd xmm0, qword [esp + 0x10]
comisd xmm3, xmm0
jbe 0x1006048e
movsd xmm2, qword [esp + 0x40]
movapd xmm1, xmm0
subsd xmm1, xmm3
andpd xmm1, xmmword [0x100ce6d0]
comisd xmm2, xmm1
jbe 0x1006048e
movapd xmm0, xmm3
movsd qword [esp + 0x10], xmm0
call sub.MSVCR120.dll__libm_sse2_sin_precise
movd xmm1, dword [esi + 0x28]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [esp + 0x10]
call sub.MSVCR120.dll__libm_sse2_cos_precise
movd xmm1, dword [esi + 0x28]
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm1
movd xmm1, dword [esi + 0x20]
cvtdq2pd xmm1, xmm1
addsd xmm0, xmm1
movsd qword [esi + 0x48], xmm0
movsd xmm0, qword [esp + 0x60]
addsd xmm0, qword [esp + 0x50]
movsd qword [esi + 0x50], xmm0
cvttsd2si edx, qword [esi + 0x48]
cvttsd2si ecx, qword [esi + 0x50]
cmp edx, dword [esp + 0x38]
jne 0x100604fb
cmp ecx, dword [esp + 0x18]
je 0x100605a3
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], ecx
lea ecx, [esi + 0x68]
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], edx
call fcn.100305d0
jmp 0x100605a3
cmp byte [esi + 0x18], 0
je 0x100605a3
mov ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0xc]
sub eax, ecx
mov byte [esi + 0x18], 0
cmp eax, 0x28
lea eax, [ecx + 0x28]
jb 0x10060549
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
cvttsd2si eax, qword [esi + 0x48]
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x28], eax
cvttsd2si eax, qword [esi + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x68]
mov dword [esp + 0x3c], eax
push dword [eax + 4]
push eax
call fcn.10033f10
mov edx, eax
mov ecx, 0x9249248
mov eax, dword [esi + 0x6c]
sub ecx, eax
cmp ecx, 1
jb 0x100605f8
lea ecx, [eax + 1]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x6c], ecx
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
cmp byte [esi + 0xd], 0
jne 0x100605e7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100605cc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100605e7
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100605c0
jmp 0x100605e7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100605e5
cmp esi, dword [eax + 8]
jne 0x100605e5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100605d5
mov esi, eax
cmp esi, dword [edi + 0x58]
jne 0x1005fd70
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.list_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
int3