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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x818
movsd xmm3, qword [0x10069350]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x4c], eax
push esi
xorps xmm1, xmm1
mov dword [esp + 0xcc], edx
mov esi, eax
mov dword [esp + 0x20], 0
movsx eax, byte [eax]
movapd xmm2, xmm1
mov dword [esp + 0xb0], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
movsd qword [esp + 0x74], xmm1
movsd qword [esp + 4], xmm2
mov dword [esp + 0x24], esi
movsd qword [esp + 0x5c], xmm3
push edi
cmp eax, 0x2d
ja 0x10020613
jmp 0x100205e0
movzx eax, byte [eax + 0x10021b2c]
jmp dword [eax*4 + 0x10021b18]
mov al, byte [esi]
mov byte [esp + 0x4f], al
cmp al, 0x30
jne 0x1002063d
mov dword [esp + 0x44], 1
inc esi
cmp byte [esi], 0x30
je 0x10020625
mov al, byte [esi]
mov dword [esp + 0x28], esi
mov byte [esp + 0x4f], al
test al, al
je 0x10021af3
movsx edi, byte [esp + 0x4f]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x58], esi
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
cmp edi, 0x30
jl 0x1002069e
lea ecx, [ecx]
cmp edi, 0x39
jg 0x1002069a
cmp eax, 9
jge 0x10020675
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [edi + eax*2]
jmp 0x10020683
cmp eax, 0x10
jge 0x10020687
lea eax, [ecx - 6]
lea eax, [ecx + eax*4]
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x20]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], eax
cmp edi, 0x30
jge 0x10020660
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
cmp edi, 0x2e
jne 0x100207dd
movsx edi, byte [esi + 1]
inc esi
mov eax, esi
mov dword [esp + 0x50], esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], eax
sub eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], esi
test eax, eax
jne 0x10020743
cmp edi, 0x30
jne 0x10020727
xor eax, eax
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x28], esi
cmp edi, 0x30
je 0x10020710
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x100207d9
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x58], esi
jmp 0x10020753
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x100207d5
mov eax, dword [esp + 0x3c]
inc eax
sub edi, 0x30
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edi
je 0x100207c3
add dword [esp + 0x30], eax
cmp eax, 1
jle 0x10020799
mov esi, dword [esp + 0x20]
lea edi, [eax - 1]
mov eax, esi
inc esi
cmp eax, 9
jge 0x10020780
lea edx, [edx + edx*4]
add edx, edx
jmp 0x1002078a
cmp esi, 0x10
jg 0x1002078a
lea ecx, [ecx + ecx*4]
add ecx, ecx
dec edi
jne 0x10020771
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x20]
cmp eax, 9
jge 0x100207ae
lea eax, [edx + edx*4]
lea edx, [edi + eax*2]
jmp 0x100207bb
cmp dword [esp + 0x20], 0x10
jg 0x100207bb
lea eax, [ecx + ecx*4]
lea ecx, [edi + eax*2]
mov dword [esp + 0x3c], 0
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], esi
jmp 0x10020743
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
cmp edi, 0x65
je 0x100207f3
cmp edi, 0x45
jne 0x100208de
test eax, eax
jne 0x10020807
cmp dword [esp + 0x3c], eax
jne 0x10020807
cmp dword [esp + 0x44], eax
je case.0x10020922.74
movsx edi, byte [esi + 1]
mov dword [esp + 0x54], esi
mov eax, edi
inc esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], esi
sub eax, 0x2b
je 0x10020830
sub eax, 2
jne 0x10020839
mov dword [esp + 0x50], 1
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x28], esi
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x100208d6
cmp edi, 0x30
jne 0x1002085e
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
cmp edi, 0x30
je 0x10020850
mov dword [esp + 0x28], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x100208d2
mov dword [esp + 0x5c], esi
lea eax, [edi - 0x30]
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
cmp edi, 0x30
jl 0x100208a4
mov ecx, eax
cmp edi, 0x39
jg 0x1002089c
inc esi
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
mov dword [esp + 0x28], esi
lea ecx, [edi + ecx*2]
movsx edi, byte [esi]
cmp edi, 0x30
jge 0x10020881
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x5c]
cmp eax, 8
jg 0x100208ba
mov eax, dword [esp + 0x18]
cmp eax, 0x4e1f
jle 0x100208c3
mov eax, 0x4e1f
mov dword [esp + 0x18], eax
cmp dword [esp + 0x50], 0
je 0x100208de
neg eax
mov dword [esp + 0x18], eax
jmp 0x100208de
xor eax, eax
jmp 0x100208e2
mov esi, dword [esp + 0x54]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], 0
jne 0x10020a08
cmp dword [esp + 0x3c], 0
jne 0x10021af3
cmp dword [esp + 0x44], 0
jne 0x10021af3
mov eax, dword [esp + 0x48]
test eax, eax
jne case.0x10020922.74
add edi, 0xffffffb7
cmp edi, 0x25
ja case.0x10020922.74
movzx eax, byte [edi + 0x10021b68]
jmp dword [eax*4 + 0x10021b5c]
mov edx, 0x6e
mov edi, 0x100686d1
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10020943
add ecx, 0x20
cmp ecx, edx
jne case.0x10020922.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x10020933
mov edx, esi
mov dword [esp + 0x2c], 0x100686d5
mov edi, 0x69
movsx ecx, byte [edx + 1]
lea edx, [edx + 1]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10020974
add ecx, 0x20
cmp ecx, edi
jne 0x1002098d
mov eax, dword [esp + 0x2c]
movsx edi, byte [eax]
inc eax
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x10020962
lea esi, [edx + 1]
jmp 0x1002098e
inc esi
mov dword [esp + 0xc], 0x7ff00000
mov dword [esp + 8], 0
movsd xmm2, qword [esp + 8]
jmp 0x10021af3
mov edx, 0x61
mov edi, 0x100686dd
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x100209c3
add ecx, 0x20
cmp ecx, edx
jne case.0x10020922.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x100209b3
inc esi
mov dword [esp + 0xc], 0x7ff80000
mov dword [esp + 0x28], esi
mov dword [esp + 8], edx
cmp byte [esi], 0x28
jne 0x1002099e
lea edx, [esp + 0x28]
lea ecx, [esp + 8]
call fcn.1001fea0
movsd xmm2, qword [esp + 8]
jmp 0x10021aef
mov esi, dword [esp + 0x54]
xor eax, eax
jmp 0x10021af7
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14]
test eax, eax
movd xmm2, edx
cmove eax, edi
mov dword [esp + 0x14], eax
mov eax, 0x10
cmp edi, eax
cvtdq2pd xmm2, xmm2
cmovl eax, edi
mov dword [esp + 0x54], eax
mov eax, edx
shr eax, 0x1f
addsd xmm2, qword [eax*8 + 0x10069340]
mov eax, dword [esp + 0x54]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
cmp eax, 9
jle 0x10020a9b
movsd xmm1, qword [eax*8 + 0x10068710]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulsd xmm1, xmm2
addsd xmm0, qword [ecx*8 + 0x10069340]
addsd xmm1, xmm0
movaps xmm2, xmm1
movsd xmm1, qword [esp + 0x78]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
mov eax, dword [esp + 0x18]
cmp edi, 0xf
jg 0x10020b14
test eax, eax
je 0x10021af3
jle 0x10020afc
cmp eax, 0x16
jg 0x10020ac8
movsd xmm0, qword [eax*8 + 0x10068758]
mulsd xmm0, xmm2
movaps xmm2, xmm0
jmp 0x10021af3
mov ecx, 0xf
sub ecx, edi
lea eax, [ecx + 0x16]
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
jg 0x10020b14
movsd xmm0, qword [ecx*8 + 0x10068758]
sub eax, ecx
mulsd xmm0, xmm2
mulsd xmm0, qword [eax*8 + 0x10068758]
movaps xmm2, xmm0
jmp 0x10021af3
cmp eax, 0xffffffea
jl 0x10020b14
shl eax, 3
mov ecx, 0x10068758
sub ecx, eax
divsd xmm2, qword [ecx]
jmp 0x10021af3
sub eax, dword [esp + 0x54]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0xb0], ecx
test eax, eax
jle 0x10020beb
mov ecx, eax
and ecx, 0xf
je 0x10020b4c
movsd xmm0, qword [ecx*8 + 0x10068758]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 8], xmm2
and eax, 0xfffffff0
je 0x10020ce7
cmp eax, 0x134
jg 0x1002178e
sar eax, 4
xor ecx, ecx
cmp eax, 1
jle 0x10020b8b
lea ebx, [ebx]
test al, 1
je 0x10020b83
mulsd xmm2, qword [ecx*8 + 0x10068730]
movsd qword [esp + 8], xmm2
sar eax, 1
inc ecx
cmp eax, 1
jg 0x10020b70
movsd xmm0, qword [ecx*8 + 0x10068730]
sub dword [esp + 0xc], 0x3500000
mulsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x7ff00000
cmp ecx, 0x7ca00000
ja 0x1002178e
cmp ecx, 0x7c900000
jbe 0x10020bdd
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x10020ce7
add eax, 0x3500000
mov dword [esp + 0xc], eax
jmp 0x10020ce7
jns 0x10020ce7
neg eax
mov ecx, eax
and ecx, 0xf
je 0x10020c0f
divsd xmm2, qword [ecx*8 + 0x10068758]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
sar eax, 4
test eax, eax
je 0x10020ce7
cmp eax, 0x20
jge 0x100219e0
test al, 0x10
mov dword [esp + 0x5c], 0x6a
mov ecx, 0
cmovne ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0xb0], ecx
test eax, eax
jle 0x10020c71
mov ecx, 0x10068700
jmp 0x10020c50
test al, 1
je 0x10020c5e
mulsd xmm2, qword [ecx]
movsd qword [esp + 8], xmm2
sar eax, 1
add ecx, 8
test eax, eax
jg 0x10020c50
mov ecx, dword [esp + 0x44]
movsd qword [esp + 0x30], xmm2
test ecx, ecx
je 0x10020cd3
mov eax, dword [esp + 0xc]
mov ecx, 0x6b
shr eax, 0x14
and eax, 0x7ff
sub ecx, eax
test ecx, ecx
jle 0x10020cd3
cmp ecx, 0x20
jl 0x10020cc2
mov dword [esp + 8], 0
cmp ecx, 0x35
jl 0x10020cae
mov dword [esp + 0xc], 0x3700000
movsd xmm0, qword [esp + 8]
jmp 0x10020cd9
add ecx, 0xffffffe0
or eax, 0xffffffff
shl eax, cl
and dword [esp + 0xc], eax
movsd xmm0, qword [esp + 8]
jmp 0x10020cd9
or eax, 0xffffffff
shl eax, cl
and dword [esp + 8], eax
movsd xmm0, qword [esp + 8]
jmp 0x10020cd9
movsd xmm0, qword [esp + 0x30]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100219e0
mov esi, dword [esp + 0x14]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
cmp edi, 0x28
jle 0x10020dbf
mov eax, 0x12
mov ecx, eax
cmp esi, eax
jge 0x10020d13
mov eax, dword [esp + 0x48]
add eax, ecx
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x58]
mov edi, edi
dec eax
cmp eax, dword [esp + 0x2c]
jg 0x10020d2e
cmp eax, edi
jl 0x10020d2e
lea eax, [edi - 1]
cmp byte [eax + esi], 0x30
jne 0x10020d37
dec ecx
jmp 0x10020d20
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
sub edi, ecx
add dword [esp + 0x18], edi
cmp esi, ecx
mov edi, ecx
cmovg esi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
cmp ecx, 9
jge 0x10020dbf
xor edx, edx
xor esi, esi
cmp dword [esp + 0x14], edx
jle 0x10020d8a
mov edi, dword [esp + 0x14]
jmp 0x10020d70
mov eax, dword [esp + 0x58]
lea edx, [edx + edx*4]
lea edx, [edx - 0x18]
movsx ecx, byte [esi + eax]
inc esi
lea edx, [ecx + edx*2]
cmp esi, edi
jl 0x10020d70
mov edi, dword [esp + 0x20]
cmp esi, edi
jge 0x10020dbb
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x58]
sub edi, esi
mov dword [esp + 0x2c], edi
mov edi, eax
mov dword [esp + 0x5c], eax
dec dword [esp + 0x2c]
lea edx, [edx + edx*4]
movsx eax, byte [edi]
lea edx, [edx - 0x18]
lea edi, [edi + 1]
lea edx, [eax + edx*2]
jne 0x10020da2
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
push dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
push edx
push edi
mov edx, esi
call fcn.1001f220
movsd xmm0, qword [0x100692d0]
mov ecx, eax
movsd qword [esp + 0x12c], xmm0
add esp, 0xc
movsd xmm0, qword [0x100692c0]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x100692b0]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x10069320]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [0x10069308]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [0x10069290]
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [0x100692a8]
movsd qword [esp + 0x118], xmm0
movsd xmm0, qword [0x100692b8]
mov dword [esp + 0x50], ecx
movsd qword [esp + 0x128], xmm0
mov ecx, dword [ecx + 4]
mov esi, 1
call fcn.1001f040
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov ecx, dword [edx + 0x10]
lea ecx, [ecx*4 + 8]
push ecx
lea ecx, [edx + 0xc]
push ecx
lea ecx, [eax + 0xc]
push ecx
call fcn.100433c0
add esp, 0xc
lea eax, [esp + 0xdc]
lea edx, [esp + 0x5c]
lea ecx, [esp + 8]
push eax
call fcn.1001fc60
add esp, 4
mov dword [esp + 0x3c], eax
mov ecx, esi
call fcn.1001f370
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x10020eca
xor edx, edx
mov dword [esp + 0x54], eax
xor esi, esi
jmp 0x10020ed8
mov edx, eax
xor ecx, ecx
neg edx
mov dword [esp + 0x54], ecx
mov esi, edx
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
test ecx, ecx
js 0x10020ef0
add esi, ecx
mov dword [esp + 0x2c], esi
jmp 0x10020ef6
sub eax, ecx
mov dword [esp + 0x1c], eax
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0xdc]
lea eax, [esi - 1]
add eax, ecx
cmp eax, 0xfffffc02
jge 0x10020f19
add ecx, 0x433
jmp 0x10020f20
mov ecx, 0x36
sub ecx, esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add esi, ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp esi, ecx
mov dword [esp + 0x1c], ecx
mov eax, ecx
cmovl eax, esi
cmp eax, dword [esp + 0x30]
cmovg eax, dword [esp + 0x30]
test eax, eax
jle 0x10020f56
sub ecx, eax
sub esi, eax
sub dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x100210d7
mov ecx, dword [esp + 0x14]
call fcn.1001f550
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.1001f410
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x100210cf
cmp dword [ecx + 4], 7
jle 0x10020fa4
push ecx
call fcn.10043cc8
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x100210db
mov eax, dword [esp + 0x24]
test al, 1
je 0x10020fbf
and eax, 0xfffffffe
lea ecx, [esp + 0x560]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov eax, dword [0x10070f1c]
test eax, 0xfffffffe
jne 0x1002101e
mov ecx, 1
xor eax, eax
mov edx, 0x10070f1c
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10021004
mov eax, dword [0x10070f1c]
cmp eax, 1
jne 0x1002101e
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10070f1c]
cmp eax, 1
je 0x10020ff0
jmp 0x1002101e
push 0x7d0
push 0x10070f20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10070f1c], 0x10070f20
mov eax, dword [0x10070f1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx*4 + 0x10071f00]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x10071f00], edx
test al, 2
je 0x1002105c
and eax, 0xfffffffd
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov eax, dword [0x10070f1c]
test eax, 0xfffffffe
jne 0x100210b4
mov ecx, 1
xor eax, eax
mov edx, 0x10070f1c
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x1002109a
mov eax, dword [0x10070f1c]
cmp eax, 1
jne 0x100210b4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10070f1c]
cmp eax, 1
je 0x10021086
jmp 0x100210b4
push 0x7d0
push 0x10070f20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10070f1c], 0x10070f20
mov eax, dword [0x10070f1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x100210db
mov ecx, dword [esp + 0x3c]
test esi, esi
jle 0x100210ee
mov edx, esi
call fcn.1001f700
mov esi, eax
mov dword [esp + 0x3c], esi
jmp 0x100210f2
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x1002110b
mov edx, eax
call fcn.1001f550
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x10021120
mov edx, eax
call fcn.1001f700
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x1002113b
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1001f700
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edx, ecx
mov ecx, esi
call fcn.1001f910
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
mov dword [ecx + 0xc], 0
mov ecx, esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x2c], esi
sub ecx, eax
jne 0x100211b7
mov edx, dword [esp + 0x14]
lea ecx, [eax - 1]
mov esi, dword [esp + 0x1c]
add esi, 0x14
lea ecx, [esi + ecx*4]
lea edx, [edx + eax*4]
mov eax, dword [ecx]
add edx, 0x10
cmp eax, dword [edx]
jne 0x100211a5
cmp ecx, esi
jbe 0x1002123d
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10021190
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0xa4], edi
jle 0x100211c8
test ecx, ecx
jle 0x10021776
test ecx, ecx
js 0x100218ec
je 0x100217ba
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xd8]
call fcn.1001fb00
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd4]
movapd xmm1, xmm0
movsd qword [esp + 0xb8], xmm1
call fcn.1001fb00
mov eax, dword [esp + 0x14]
movsd qword [esp + 0xe8], xmm0
sub esi, dword [eax + 0x10]
shl esi, 5
sub esi, dword [esp + 0xd4]
add esi, dword [esp + 0xd8]
test esi, esi
jle 0x10021244
shl esi, 0x14
add dword [esp + 0xbc], esi
movsd xmm1, qword [esp + 0xb8]
jmp 0x1002125a
xor ecx, ecx
jmp 0x100211af
imul eax, esi, 0xfff00000
add dword [esp + 0xec], eax
movsd xmm0, qword [esp + 0xe8]
divsd xmm1, xmm0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x120]
comisd xmm0, xmm1
jb 0x1002139e
test edx, edx
je 0x1002128c
movsd xmm2, qword [esp + 0xe0]
movapd xmm1, xmm2
jmp 0x100212c9
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1002137a
test eax, 0xfffff
jne 0x10021387
movsd xmm0, qword [esp + 0xe0]
comisd xmm0, xmm1
jbe 0x1002136c
movsd xmm1, qword [esp + 0xc0]
movapd xmm2, xmm1
xorpd xmm2, xmmword [esp + 0x60]
mov esi, eax
and esi, 0x7ff00000
cmp esi, 0x7fe00000
jne 0x100213cd
movsd xmm0, qword [esp + 8]
sub eax, 0x3500000
mov dword [esp + 0xc], eax
and eax, 0x7ff00000
sub eax, 0x3400000
movsd qword [esp + 0x80], xmm0
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], 0
movsd xmm0, qword [esp + 0xf0]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
mov eax, ecx
and eax, 0x7ff00000
cmp eax, 0x7ca00000
jb 0x100213b8
cmp dword [esp + 0x84], 0x7fefffff
jne 0x10021357
cmp dword [esp + 0x80], 0xffffffff
je 0x1002178a
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x100214ed
mulsd xmm1, qword [esp + 0xc0]
jmp 0x100212bf
cmp ecx, 1
jne 0x10021387
test eax, eax
je 0x100219be
movsd xmm1, qword [esp + 0xe0]
movsd xmm2, qword [esp + 0x138]
jmp 0x100212c9
mulsd xmm1, qword [esp + 0xc0]
test edx, edx
je 0x100212bf
movapd xmm2, xmm1
jmp 0x100212c9
add ecx, 0x3500000
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 8]
jmp 0x10021479
cmp dword [esp + 0x44], 0
je 0x10021444
cmp esi, 0x6a00000
ja 0x10021444
movsd xmm0, qword [esp + 0x110]
comisd xmm0, xmm1
jb 0x10021424
movapd xmm0, xmm1
call fcn.10044271
mov edx, dword [esp + 0x30]
test eax, eax
mov ecx, 1
cmove eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x10069340]
movapd xmm2, xmm1
test edx, edx
jne 0x10021424
xorpd xmm2, xmmword [esp + 0x60]
mov eax, 0x6b00000
movsd qword [esp + 0xc8], xmm2
sub eax, esi
add dword [esp + 0xcc], eax
movsd xmm2, qword [esp + 0xc8]
lea eax, [esi - 0x3400000]
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], eax
movsd xmm0, qword [esp + 0x108]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 8]
movsd qword [esp + 8], xmm0
mov ecx, dword [esp + 0xc]
movsd qword [esp + 0x30], xmm0
cmp dword [esp + 0xa4], edi
jne 0x100214ed
cmp dword [esp + 0x44], 0
jne 0x100214ed
mov eax, ecx
and eax, 0x7ff00000
cmp esi, eax
jne 0x100214ed
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
test edx, edx
jne 0x100214cb
cmp dword [esp + 8], edx
jne 0x100214cb
test ecx, 0xfffff
jne 0x100214cb
movsd xmm0, qword [esp + 0x130]
comisd xmm0, xmm1
jmp 0x100214e7
movsd xmm0, qword [esp + 0x118]
comisd xmm0, xmm1
ja 0x10021a31
comisd xmm1, xmmword [esp + 0x128]
ja 0x10021a31
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x100215d6
cmp dword [esi + 4], 7
jle 0x1002150d
push esi
call fcn.10043cc8
add esp, 4
jmp 0x100215d6
mov eax, dword [esp + 0x24]
test al, 4
je 0x10021528
and eax, 0xfffffffb
lea ecx, [esp + 0x140]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov eax, dword [0x10070f1c]
test eax, 0xfffffffe
jne 0x10021580
mov ecx, 1
xor eax, eax
mov edx, 0x10070f1c
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10021566
mov eax, dword [0x10070f1c]
cmp eax, 1
jne 0x10021580
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10070f1c]
cmp eax, 1
je 0x10021552
jmp 0x10021580
push 0x7d0
push 0x10070f20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10070f1c], 0x10070f20
mov eax, dword [0x10070f1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x10071f00]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x10071f00], esi
test al, 8
je 0x100215ba
and eax, 0xfffffff7
lea ecx, [esp + 0x400]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x48]
test esi, esi
je 0x1002165a
cmp dword [esi + 4], 7
jle 0x100215ef
push esi
call fcn.10043cc8
add esp, 4
jmp 0x1002165a
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x1002160a
and eax, 0xffffffef
lea ecx, [esp + 0x6c0]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x10071f00]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x10071f00], esi
test al, 0x20
je 0x10021649
and eax, 0xffffffdf
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], 7
jle 0x1002166f
push esi
call fcn.10043cc8
add esp, 4
jmp 0x100216dc
mov eax, dword [esp + 0x24]
test al, 0x40
je 0x1002168a
and eax, 0xffffffbf
lea ecx, [esp + 0x350]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x10071f00]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x10071f00], esi
test al, al
jns 0x100216cb
and eax, 0xffffff7f
lea ecx, [esp + 0x4b0]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 7
jle 0x100216f8
push esi
call fcn.10043cc8
mov ecx, dword [esp + 0x54]
add esp, 4
jmp 0x10020e61
mov eax, dword [esp + 0x24]
test eax, 0x100
je 0x10021718
and eax, 0xfffffeff
lea ecx, [esp + 0x610]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x10071f00]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x10071f00], esi
test eax, 0x200
je 0x1002175c
and eax, 0xfffffdff
lea ecx, [esp + 0x770]
mov dword [esp + 0x24], eax
call fcn.100096e0
mov ecx, 0x10070f1c
call fcn.10015160
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
jmp 0x10020e61
test edx, edx
jne 0x10021a25
mov dword [esp + 0xa4], edi
jmp 0x100218f4
mov esi, dword [esp + 0x28]
call fcn.1004875e
movsd xmm3, qword [esp + 0x60]
mov dword [esp + 0xc], 0x7ff00000
mov dword [esp + 8], 0
movsd xmm2, qword [esp + 8]
mov dword [eax], 0x22
jmp 0x10021af3
mov esi, dword [esp + 0xc]
test edx, edx
mov edx, dword [esp + 8]
je 0x10021825
mov eax, esi
and eax, 0xfffff
cmp eax, 0xfffff
jne 0x10021835
cmp dword [esp + 0x44], 0
je 0x100217fa
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6a00000
ja 0x100217fa
shr eax, 0x14
mov ecx, 0x6b
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
jmp 0x100217fd
or eax, 0xffffffff
cmp edx, eax
jne 0x10021835
and esi, 0x7ff00000
mov dword [esp + 8], 0
add esi, 0x100000
mov dword [esp + 0x98], 0
jmp 0x10021a21
test esi, 0xfffff
jne 0x10021835
test edx, edx
je 0x100219a2
test dl, 1
je 0x10021a25
mov ecx, dword [esp + 0x30]
and esi, 0x7ff00000
sub esi, 0x3400000
test ecx, ecx
je 0x10021892
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], 0
movsd xmm0, qword [esp + 0x100]
addsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 8], xmm0
mov eax, 1
sub eax, ecx
mov dword [esp + 0x98], eax
jmp 0x10021a31
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x78]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], 0
subsd xmm0, qword [esp + 0xf8]
ucomisd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 8], xmm0
lahf
test ah, 0x44
jp 0x1002187f
cmp dword [esp + 0xa4], edi
jle 0x100219da
mov dword [esp + 0xb4], 1
jmp 0x10021a31
test edx, edx
jne 0x10021a25
cmp dword [esp + 8], 0
jne 0x10021a25
mov esi, dword [esp + 0xc]
test esi, 0xfffff
jne 0x10021a25
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jbe 0x10021a25
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x14], 0
jne 0x10021935
cmp dword [ecx + 0x10], 1
jle 0x10021a25
mov edx, 1
call fcn.1001f700
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
sub eax, edx
jne 0x1002199a
lea eax, [ecx + 0x14]
lea ecx, [edx - 1]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
add eax, 0x10
lea edx, [eax + edx*4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10021990
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add eax, 0x14
cmp ecx, eax
jbe 0x10021a25
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10021970
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x10021a25
cmp dword [esp + 0x44], 0
je 0x10021a0c
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jg 0x10021a0c
cmp eax, 0x3700000
jg 0x10021a25
cmp dword [esp + 0xa4], edi
jle 0x100219d4
mov dword [esp + 0xb4], 1
jmp 0x10021a25
movsd xmm1, qword [esp + 0x78]
mov esi, dword [esp + 0x28]
jmp 0x100219e6
movsd xmm1, qword [esp + 0x78]
movapd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
call fcn.1004875e
movsd xmm2, qword [esp + 0x30]
movsd xmm3, qword [esp + 0x60]
mov dword [eax], 0x22
jmp 0x10021af3
and esi, 0x7ff00000
mov dword [esp + 8], 0xffffffff
dec esi
or esi, 0xfffff
mov dword [esp + 0xc], esi
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x3c]
call fcn.1001f100
mov ecx, dword [esp + 0x48]
call fcn.1001f100
mov ecx, dword [esp + 0x14]
call fcn.1001f100
mov ecx, dword [esp + 0x50]
call fcn.1001f100
mov ecx, dword [esp + 0x1c]
call fcn.1001f100
cmp dword [esp + 0xa4], edi
jle 0x10021a8e
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xc]
call fcn.10020200
mov eax, dword [esp + 0xb4]
add esp, 4
movsd xmm2, qword [esp + 8]
jmp 0x10021a98
movsd xmm2, qword [esp + 0x30]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10021ae9
mov dword [esp + 0x84], 0x39500000
mov dword [esp + 0x80], 0
movsd xmm0, qword [esp + 0x80]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 8], xmm2
test dword [esp + 0xc], 0x7ff00000
movsd qword [esp + 0x30], xmm2
jne 0x10021ae9
call fcn.1004875e
movsd xmm2, qword [esp + 0x30]
mov dword [eax], 0x22
movsd xmm3, qword [esp + 0x60]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x10021b04
mov dword [ecx], esi
test eax, eax
je 0x10021b0c
xorpd xmm2, xmm3
pop edi
movapd xmm0, xmm2
pop esi
mov esp, ebp
pop ebp
ret