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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x3f8
movsd xmm3, qword [0x100708c0]
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x48], eax
push esi
xorps xmm1, xmm1
mov dword [esp + 0xd8], edx
mov esi, eax
mov dword [esp + 0x50], 0
movsx eax, byte [eax]
movapd xmm2, xmm1
mov dword [esp + 0xa8], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
movsd qword [esp + 0x6c], xmm1
movsd qword [esp + 0xc], xmm2
mov dword [esp + 0x14], esi
movsd qword [esp + 0x5c], xmm3
push edi
cmp eax, 0x2d
ja 0x100209d3
jmp 0x100209a0
movzx eax, byte [eax + 0x10021d44]
jmp dword [eax*4 + 0x10021d30]
mov al, byte [esi]
mov byte [esp + 0x4f], al
cmp al, 0x30
jne 0x100209fd
mov dword [esp + 0x40], 1
inc esi
cmp byte [esi], 0x30
je 0x100209e5
mov al, byte [esi]
mov dword [esp + 0x18], esi
mov byte [esp + 0x4f], al
test al, al
je 0x10021d0a
movsx edi, byte [esp + 0x4f]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x58], esi
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
cmp edi, 0x30
jl 0x10020a5e
lea ecx, [ecx]
cmp edi, 0x39
jg 0x10020a5a
cmp eax, 9
jge 0x10020a35
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [edi + eax*2]
jmp 0x10020a43
cmp eax, 0x10
jge 0x10020a47
lea eax, [ecx - 6]
lea eax, [ecx + eax*4]
lea ecx, [edi + eax*2]
mov eax, dword [esp + 0x28]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
cmp edi, 0x30
jge 0x10020a20
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x28]
cmp edi, 0x2e
jne 0x10020b9d
movsx edi, byte [esi + 1]
inc esi
mov eax, esi
mov dword [esp + 0x2c], esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x88], eax
sub eax, dword [esp + 0x84]
mov dword [esp + 0x48], eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], esi
test eax, eax
jne 0x10020b03
cmp edi, 0x30
jne 0x10020ae7
xor eax, eax
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x18], esi
cmp edi, 0x30
je 0x10020ad0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x10020b99
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x58], esi
jmp 0x10020b13
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x10020b95
mov eax, dword [esp + 0x30]
inc eax
sub edi, 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], edi
je 0x10020b83
add dword [esp + 0x34], eax
cmp eax, 1
jle 0x10020b59
mov edi, dword [esp + 0x28]
lea esi, [eax - 1]
mov eax, edi
inc edi
cmp eax, 9
jge 0x10020b40
lea edx, [edx + edx*4]
add edx, edx
jmp 0x10020b4a
cmp edi, 0x10
jg 0x10020b4a
lea ecx, [ecx + ecx*4]
add ecx, ecx
dec esi
jne 0x10020b31
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
inc dword [esp + 0x28]
cmp eax, 9
jge 0x10020b6e
lea eax, [edx + edx*4]
lea edx, [edi + eax*2]
jmp 0x10020b7b
cmp dword [esp + 0x28], 0x10
jg 0x10020b7b
lea eax, [ecx + ecx*4]
lea ecx, [edi + eax*2]
mov dword [esp + 0x30], 0
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
jmp 0x10020b03
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], 0
cmp edi, 0x65
je 0x10020bb3
cmp edi, 0x45
jne 0x10020c9e
test eax, eax
jne 0x10020bc7
cmp dword [esp + 0x30], eax
jne 0x10020bc7
cmp dword [esp + 0x40], eax
je case.0x10020ce2.74
movsx edi, byte [esi + 1]
mov dword [esp + 0x50], esi
mov eax, edi
inc esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], esi
sub eax, 0x2b
je 0x10020bf0
sub eax, 2
jne 0x10020bf9
mov dword [esp + 0x2c], 1
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x18], esi
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x10020c96
cmp edi, 0x30
jne 0x10020c1e
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
cmp edi, 0x30
je 0x10020c10
mov dword [esp + 0x18], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x10020c92
mov dword [esp + 0x5c], esi
lea eax, [edi - 0x30]
movsx edi, byte [esi + 1]
inc esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
cmp edi, 0x30
jl 0x10020c64
mov ecx, eax
cmp edi, 0x39
jg 0x10020c5c
inc esi
lea ecx, [ecx + ecx*4]
lea ecx, [ecx - 0x18]
mov dword [esp + 0x18], esi
lea ecx, [edi + ecx*2]
movsx edi, byte [esi]
cmp edi, 0x30
jge 0x10020c41
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
mov eax, esi
sub eax, dword [esp + 0x5c]
cmp eax, 8
jg 0x10020c7a
mov eax, dword [esp + 0x20]
cmp eax, 0x4e1f
jle 0x10020c83
mov eax, 0x4e1f
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], 0
je 0x10020c9e
neg eax
mov dword [esp + 0x20], eax
jmp 0x10020c9e
xor eax, eax
jmp 0x10020ca2
mov esi, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], 0
jne 0x10020daa
cmp dword [esp + 0x30], 0
jne 0x10021d0a
cmp dword [esp + 0x40], 0
jne 0x10021d0a
mov eax, dword [esp + 0x48]
test eax, eax
jne case.0x10020ce2.74
add edi, 0xffffffb7
cmp edi, 0x25
ja case.0x10020ce2.74
movzx eax, byte [edi + 0x10021d80]
jmp dword [eax*4 + 0x10021d74]
mov edx, 0x6e
mov edi, 0x1006f6fd
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10020d03
add ecx, 0x20
cmp ecx, edx
jne case.0x10020ce2.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x10020cf3
mov eax, esi
lea ecx, [esp + 0x18]
mov edx, str.inity
mov dword [esp + 0x18], eax
call fcn.100202f0
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x10020d30
inc esi
mov dword [esp + 0x14], 0x7ff00000
mov dword [esp + 0x10], 0
movsd xmm2, qword [esp + 0x10]
jmp 0x10021d0a
mov edx, 0x61
mov edi, 0x1006f709
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10020d65
add ecx, 0x20
cmp ecx, edx
jne case.0x10020ce2.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x10020d55
inc esi
mov dword [esp + 0x14], 0x7ff80000
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edx
cmp byte [esi], 0x28
jne 0x10020d40
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
call fcn.10020330
movsd xmm2, qword [esp + 0x10]
jmp 0x10021d06
mov esi, dword [esp + 0x50]
xor eax, eax
jmp 0x10021d0e
sub eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x1c]
test eax, eax
movd xmm2, edx
cmove eax, edi
mov dword [esp + 0x1c], eax
mov eax, 0x10
cmp edi, eax
cvtdq2pd xmm2, xmm2
cmovl eax, edi
mov dword [esp + 0x50], eax
mov eax, edx
shr eax, 0x1f
addsd xmm2, qword [eax*8 + 0x100708b0]
mov eax, dword [esp + 0x50]
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x10], xmm2
cmp eax, 9
jle 0x10020e3d
movsd xmm1, qword [eax*8 + 0x1006f5e0]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulsd xmm1, xmm2
addsd xmm0, qword [ecx*8 + 0x100708b0]
addsd xmm1, xmm0
movaps xmm2, xmm1
movsd xmm1, qword [esp + 0x70]
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x10], xmm2
mov eax, dword [esp + 0x20]
cmp edi, 0xf
jg 0x10020eb6
test eax, eax
je 0x10021d0a
jle 0x10020e9e
cmp eax, 0x16
jg 0x10020e6a
movsd xmm0, qword [eax*8 + 0x1006f628]
mulsd xmm0, xmm2
movaps xmm2, xmm0
jmp 0x10021d0a
mov ecx, 0xf
sub ecx, edi
lea eax, [ecx + 0x16]
cmp dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
jg 0x10020eb6
movsd xmm0, qword [ecx*8 + 0x1006f628]
sub eax, ecx
mulsd xmm0, xmm2
mulsd xmm0, qword [eax*8 + 0x1006f628]
movaps xmm2, xmm0
jmp 0x10021d0a
cmp eax, 0xffffffea
jl 0x10020eb6
shl eax, 3
mov ecx, 0x1006f628
sub ecx, eax
divsd xmm2, qword [ecx]
jmp 0x10021d0a
sub eax, dword [esp + 0x50]
xor ecx, ecx
add eax, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xa8], ecx
test eax, eax
jle 0x10020f8b
mov ecx, eax
and ecx, 0xf
je 0x10020eee
movsd xmm0, qword [ecx*8 + 0x1006f628]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 0x10], xmm2
and eax, 0xfffffff0
je 0x10021087
cmp eax, 0x134
jg 0x100219b0
sar eax, 4
xor ecx, ecx
cmp eax, 1
jle 0x10020f2b
lea esp, [esp]
test al, 1
je 0x10020f23
mulsd xmm2, qword [ecx*8 + 0x1006f5d0]
movsd qword [esp + 0x10], xmm2
sar eax, 1
inc ecx
cmp eax, 1
jg 0x10020f10
movsd xmm0, qword [ecx*8 + 0x1006f5d0]
sub dword [esp + 0x14], 0x3500000
mulsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0x7ff00000
cmp ecx, 0x7ca00000
ja 0x100219b0
cmp ecx, 0x7c900000
jbe 0x10020f7d
mov dword [esp + 0x14], 0x7fefffff
mov dword [esp + 0x10], 0xffffffff
jmp 0x10021087
add eax, 0x3500000
mov dword [esp + 0x14], eax
jmp 0x10021087
jns 0x10021087
neg eax
mov ecx, eax
and ecx, 0xf
je 0x10020faf
divsd xmm2, qword [ecx*8 + 0x1006f628]
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x10], xmm2
sar eax, 4
test eax, eax
je 0x10021087
cmp eax, 0x20
jge 0x10021c00
test al, 0x10
mov dword [esp + 0x5c], 0x6a
mov ecx, 0
cmovne ecx, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xa8], ecx
test eax, eax
jle 0x10021011
mov ecx, 0x1006f600
jmp 0x10020ff0
test al, 1
je 0x10020ffe
mulsd xmm2, qword [ecx]
movsd qword [esp + 0x10], xmm2
sar eax, 1
add ecx, 8
test eax, eax
jg 0x10020ff0
mov ecx, dword [esp + 0x2c]
movsd qword [esp + 0x40], xmm2
test ecx, ecx
je 0x10021073
mov eax, dword [esp + 0x14]
mov ecx, 0x6b
shr eax, 0x14
and eax, 0x7ff
sub ecx, eax
test ecx, ecx
jle 0x10021073
cmp ecx, 0x20
jl 0x10021062
mov dword [esp + 0x10], 0
cmp ecx, 0x35
jl 0x1002104e
mov dword [esp + 0x14], 0x3700000
movsd xmm0, qword [esp + 0x10]
jmp 0x10021079
add ecx, 0xffffffe0
or eax, 0xffffffff
shl eax, cl
and dword [esp + 0x14], eax
movsd xmm0, qword [esp + 0x10]
jmp 0x10021079
or eax, 0xffffffff
shl eax, cl
and dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x10]
jmp 0x10021079
movsd xmm0, qword [esp + 0x40]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10021c00
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], esi
cmp edi, 0x28
jle 0x1002115f
mov eax, 0x12
mov ecx, eax
cmp esi, eax
jge 0x100210b3
mov eax, dword [esp + 0x48]
add eax, ecx
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x58]
mov edi, edi
dec eax
cmp eax, dword [esp + 0x38]
jg 0x100210ce
cmp eax, edi
jl 0x100210ce
lea eax, [edi - 1]
cmp byte [eax + esi], 0x30
jne 0x100210d7
dec ecx
jmp 0x100210c0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
sub edi, ecx
add dword [esp + 0x20], edi
cmp esi, ecx
mov edi, ecx
cmovg esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], esi
cmp ecx, 9
jge 0x1002115f
xor edx, edx
xor esi, esi
cmp dword [esp + 0x1c], edx
jle 0x1002112a
mov edi, dword [esp + 0x1c]
jmp 0x10021110
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 0x10021110
mov edi, dword [esp + 0x28]
cmp esi, edi
jge 0x1002115b
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x58]
sub edi, esi
mov dword [esp + 0x38], edi
mov edi, eax
mov dword [esp + 0x5c], eax
dec dword [esp + 0x38]
lea edx, [edx + edx*4]
movsx eax, byte [edi]
lea edx, [edx - 0x18]
lea edi, [edi + 1]
lea edx, [eax + edx*2]
jne 0x10021142
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
push edx
push edi
mov edx, esi
call fcn.1001f700
movsd xmm0, qword [0x10070838]
mov ecx, eax
movsd qword [esp + 0x13c], xmm0
add esp, 0xc
movsd xmm0, qword [0x10070828]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x10070818]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [0x10070890]
movsd qword [esp + 0x118], xmm0
movsd xmm0, qword [0x10070870]
movsd qword [esp + 0x120], xmm0
movsd xmm0, qword [0x100707f8]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [0x10070810]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [0x10070820]
mov dword [esp + 0x50], ecx
movsd qword [esp + 0x128], xmm0
mov ecx, dword [ecx + 4]
mov esi, 1
call fcn.1001f520
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.1004a150
add esp, 0xc
lea eax, [esp + 0xe8]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x10]
push eax
call fcn.10020100
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, esi
call fcn.1001f8a0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
test eax, eax
js 0x1002126a
xor edx, edx
mov dword [esp + 0x40], eax
xor esi, esi
jmp 0x10021278
mov edx, eax
xor ecx, ecx
neg edx
mov dword [esp + 0x40], ecx
mov esi, edx
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
test ecx, ecx
js 0x10021290
add esi, ecx
mov dword [esp + 0x38], esi
jmp 0x10021296
sub eax, ecx
mov dword [esp + 0x24], eax
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xe8]
lea eax, [esi - 1]
add eax, ecx
cmp eax, 0xfffffc02
jge 0x100212b9
add ecx, 0x433
jmp 0x100212c0
mov ecx, 0x36
sub ecx, esi
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add esi, ecx
add eax, ecx
mov ecx, dword [esp + 0x24]
add ecx, eax
cmp esi, ecx
mov dword [esp + 0x24], ecx
mov eax, ecx
cmovl eax, esi
cmp eax, dword [esp + 0x34]
cmovg eax, dword [esp + 0x34]
test eax, eax
jle 0x100212f6
sub ecx, eax
sub esi, eax
sub dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
test edx, edx
jle 0x10021477
mov ecx, dword [esp + 0x1c]
call fcn.1001fa80
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [esp + 0x1c], eax
call fcn.1001f940
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x1002146f
cmp dword [ecx + 4], 7
jle 0x10021344
push ecx
call fcn.1004aa58
mov eax, dword [esp + 0x3c]
add esp, 4
mov ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x1002147b
mov eax, dword [esp + 0x54]
test al, 1
je 0x1002135f
and eax, 0xfffffffe
lea ecx, [esp + 0x140]
mov dword [esp + 0x54], eax
call fcn.10003360
mov eax, dword [0x10078f60]
test eax, 0xfffffffe
jne 0x100213be
mov ecx, 1
xor eax, eax
mov edx, 0x10078f60
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x100213a4
mov eax, dword [0x10078f60]
cmp eax, 1
jne 0x100213be
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10078f60]
cmp eax, 1
je 0x10021390
jmp 0x100213be
push 0x7d0
push 0x10078f64
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10078f60], 0x10078f64
mov eax, dword [0x10078f60]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx + 4]
mov eax, dword [ecx*4 + 0x10078f40]
mov dword [edx], eax
mov eax, dword [esp + 0x54]
mov dword [ecx*4 + 0x10078f40], edx
test al, 2
je 0x100213fc
and eax, 0xfffffffd
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x54], eax
call fcn.10003360
mov eax, dword [0x10078f60]
test eax, 0xfffffffe
jne 0x10021454
mov ecx, 1
xor eax, eax
mov edx, 0x10078f60
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x1002143a
mov eax, dword [0x10078f60]
cmp eax, 1
jne 0x10021454
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10078f60]
cmp eax, 1
je 0x10021426
jmp 0x10021454
push 0x7d0
push 0x10078f64
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10078f60], 0x10078f64
mov eax, dword [0x10078f60]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
mov dword [esp + 0x30], ecx
jmp 0x1002147b
mov ecx, dword [esp + 0x30]
test esi, esi
jle 0x1002148e
mov edx, esi
call fcn.1001fc30
mov esi, eax
mov dword [esp + 0x30], esi
jmp 0x10021492
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x100214ab
mov edx, eax
call fcn.1001fa80
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x100214c0
mov edx, eax
call fcn.1001fc30
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x100214db
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.1001fc30
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov edx, ecx
mov ecx, esi
call fcn.1001fe40
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 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 + 0x34], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x38], esi
sub ecx, eax
jne 0x10021557
mov edx, dword [esp + 0x1c]
lea ecx, [eax - 1]
mov esi, dword [esp + 0x24]
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 0x10021545
cmp ecx, esi
jbe 0x100215dd
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10021530
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x9c], edi
jle 0x10021568
test ecx, ecx
jle 0x10021998
test ecx, ecx
js 0x10021b0e
je 0x100219dc
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xec]
call fcn.1001ffa0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xcc]
movapd xmm1, xmm0
movsd qword [esp + 0xb0], xmm1
call fcn.1001ffa0
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0xb8], xmm0
sub esi, dword [eax + 0x10]
shl esi, 5
sub esi, dword [esp + 0xcc]
add esi, dword [esp + 0xec]
test esi, esi
jle 0x100215e4
shl esi, 0x14
add dword [esp + 0xb4], esi
movsd xmm1, qword [esp + 0xb0]
jmp 0x100215fa
xor ecx, ecx
jmp 0x1002154f
imul eax, esi, 0xfff00000
add dword [esp + 0xbc], eax
movsd xmm0, qword [esp + 0xb8]
divsd xmm1, xmm0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
movsd xmm0, qword [esp + 0x130]
comisd xmm0, xmm1
jb 0x10021735
test edx, edx
je 0x1002162c
movsd xmm2, qword [esp + 0xc0]
movapd xmm1, xmm2
jmp 0x10021669
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x10021711
test eax, 0xfffff
jne 0x1002171e
movsd xmm0, qword [esp + 0xc0]
comisd xmm0, xmm1
jbe 0x10021703
movsd xmm1, qword [esp + 0xd0]
movapd xmm2, xmm1
xorpd xmm2, xmmword [esp + 0x60]
mov esi, eax
and esi, 0x7ff00000
cmp esi, 0x7fe00000
jne 0x10021764
movsd xmm0, qword [esp + 0x10]
sub eax, 0x3500000
mov dword [esp + 0x14], eax
and eax, 0x7ff00000
sub eax, 0x3400000
movsd qword [esp + 0x78], xmm0
mov dword [esp + 0x104], eax
mov dword [esp + 0x100], 0
movsd xmm0, qword [esp + 0x100]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 0x7ff00000
cmp eax, 0x7ca00000
jb 0x1002174f
cmp dword [esp + 0x7c], 0x7fefffff
jne 0x100216ee
cmp dword [esp + 0x78], 0xffffffff
je 0x100219ac
mov dword [esp + 0x14], 0x7fefffff
mov dword [esp + 0x10], 0xffffffff
jmp 0x10021884
mulsd xmm1, qword [esp + 0xd0]
jmp 0x1002165f
cmp ecx, 1
jne 0x1002171e
test eax, eax
je 0x10021bde
movsd xmm1, qword [esp + 0xc0]
movsd xmm2, qword [esp + 0x118]
jmp 0x10021669
mulsd xmm1, qword [esp + 0xd0]
test edx, edx
je 0x1002165f
movapd xmm2, xmm1
jmp 0x10021669
add ecx, 0x3500000
mov dword [esp + 0x14], ecx
movsd xmm0, qword [esp + 0x10]
jmp 0x10021810
cmp dword [esp + 0x2c], 0
je 0x100217db
cmp esi, 0x6a00000
ja 0x100217db
movsd xmm0, qword [esp + 0x120]
comisd xmm0, xmm1
jb 0x100217bb
movapd xmm0, xmm1
call fcn.1004b001
mov edx, dword [esp + 0x34]
test eax, eax
mov ecx, 1
cmove eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x100708b0]
movapd xmm2, xmm1
test edx, edx
jne 0x100217bb
xorpd xmm2, xmmword [esp + 0x60]
mov eax, 0x6b00000
movsd qword [esp + 0xe0], xmm2
sub eax, esi
add dword [esp + 0xe4], eax
movsd xmm2, qword [esp + 0xe0]
lea eax, [esi - 0x3400000]
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf4], eax
movsd xmm0, qword [esp + 0xf0]
mulsd xmm0, xmm2
addsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x10], xmm0
mov ecx, dword [esp + 0x14]
movsd qword [esp + 0x40], xmm0
cmp dword [esp + 0x9c], edi
jne 0x10021884
cmp dword [esp + 0x2c], 0
jne 0x10021884
mov eax, ecx
and eax, 0x7ff00000
cmp esi, eax
jne 0x10021884
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
test edx, edx
jne 0x10021862
cmp dword [esp + 0x10], edx
jne 0x10021862
test ecx, 0xfffff
jne 0x10021862
movsd xmm0, qword [esp + 0x138]
comisd xmm0, xmm1
jmp 0x1002187e
movsd xmm0, qword [esp + 0x110]
comisd xmm0, xmm1
ja 0x10021c51
comisd xmm1, xmmword [esp + 0x128]
ja 0x10021c51
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10021974
cmp dword [esi + 4], 7
jle 0x100218a4
push esi
call fcn.1004aa58
add esp, 4
jmp 0x10021974
mov eax, dword [esp + 0x54]
test al, 4
je 0x100218bf
and eax, 0xfffffffb
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x54], eax
call fcn.10003360
mov eax, dword [0x10078f60]
test eax, 0xfffffffe
jne 0x1002191e
mov ecx, 1
xor eax, eax
mov edx, 0x10078f60
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10021904
mov eax, dword [0x10078f60]
cmp eax, 1
jne 0x1002191e
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10078f60]
cmp eax, 1
je 0x100218f0
jmp 0x1002191e
push 0x7d0
push 0x10078f64
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10078f60], 0x10078f64
mov eax, dword [0x10078f60]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x10078f40]
mov dword [esi], eax
mov eax, dword [esp + 0x54]
mov dword [ecx*4 + 0x10078f40], esi
test al, 8
je 0x10021958
and eax, 0xfffffff7
lea ecx, [esp + 0x350]
mov dword [esp + 0x54], eax
call fcn.10003360
mov ecx, 0x10078f60
call fcn.10015bd0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x48]
call fcn.1001f5e0
mov ecx, dword [esp + 0x1c]
call fcn.1001f5e0
mov ecx, dword [esp + 0x24]
call fcn.1001f5e0
mov ecx, dword [esp + 0x50]
jmp 0x10021201
test edx, edx
jne 0x10021c45
mov dword [esp + 0x9c], edi
jmp 0x10021b16
mov esi, dword [esp + 0x18]
call fcn.1004f401
movsd xmm3, qword [esp + 0x60]
mov dword [esp + 0x14], 0x7ff00000
mov dword [esp + 0x10], 0
movsd xmm2, qword [esp + 0x10]
mov dword [eax], 0x22
jmp 0x10021d0a
mov esi, dword [esp + 0x14]
test edx, edx
mov edx, dword [esp + 0x10]
je 0x10021a47
mov eax, esi
and eax, 0xfffff
cmp eax, 0xfffff
jne 0x10021a57
cmp dword [esp + 0x2c], 0
je 0x10021a1c
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6a00000
ja 0x10021a1c
shr eax, 0x14
mov ecx, 0x6b
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
jmp 0x10021a1f
or eax, 0xffffffff
cmp edx, eax
jne 0x10021a57
and esi, 0x7ff00000
mov dword [esp + 0x10], 0
add esi, 0x100000
mov dword [esp + 0x90], 0
jmp 0x10021c41
test esi, 0xfffff
jne 0x10021a57
test edx, edx
je 0x10021bc2
test dl, 1
je 0x10021c45
mov ecx, dword [esp + 0x34]
and esi, 0x7ff00000
sub esi, 0x3400000
test ecx, ecx
je 0x10021ab4
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], 0
movsd xmm0, qword [esp + 0x108]
addsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x10], xmm0
mov eax, 1
sub eax, ecx
mov dword [esp + 0x90], eax
jmp 0x10021c51
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x70]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], 0
subsd xmm0, qword [esp + 0xf8]
ucomisd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x10], xmm0
lahf
test ah, 0x44
jp 0x10021aa1
cmp dword [esp + 0x9c], edi
jle 0x10021bfa
mov dword [esp + 0xac], 1
jmp 0x10021c51
test edx, edx
jne 0x10021c45
cmp dword [esp + 0x10], 0
jne 0x10021c45
mov esi, dword [esp + 0x14]
test esi, 0xfffff
jne 0x10021c45
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jbe 0x10021c45
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 0x14], 0
jne 0x10021b57
cmp dword [ecx + 0x10], 1
jle 0x10021c45
mov edx, 1
call fcn.1001fc30
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
sub eax, edx
jne 0x10021bba
lea eax, [ecx + 0x14]
lea ecx, [edx - 1]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x1c]
add eax, 0x10
lea edx, [eax + edx*4]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10021bb0
mov edi, edi
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
add eax, 0x14
cmp ecx, eax
jbe 0x10021c45
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10021b90
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x10021c45
cmp dword [esp + 0x2c], 0
je 0x10021c2c
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jg 0x10021c2c
cmp eax, 0x3700000
jg 0x10021c45
cmp dword [esp + 0x9c], edi
jle 0x10021bf4
mov dword [esp + 0xac], 1
jmp 0x10021c45
movsd xmm1, qword [esp + 0x70]
mov esi, dword [esp + 0x18]
jmp 0x10021c06
movsd xmm1, qword [esp + 0x70]
movapd xmm0, xmm1
movsd qword [esp + 0x40], xmm0
call fcn.1004f401
movsd xmm2, qword [esp + 0x40]
movsd xmm3, qword [esp + 0x60]
mov dword [eax], 0x22
jmp 0x10021d0a
and esi, 0x7ff00000
mov dword [esp + 0x10], 0xffffffff
dec esi
or esi, 0xfffff
mov dword [esp + 0x14], esi
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x40], xmm0
mov ecx, dword [esp + 0x30]
call fcn.1001f5e0
mov ecx, dword [esp + 0x48]
call fcn.1001f5e0
mov ecx, dword [esp + 0x1c]
call fcn.1001f5e0
mov ecx, dword [esp + 0x50]
call fcn.1001f5e0
mov ecx, dword [esp + 0x24]
call fcn.1001f5e0
cmp dword [esp + 0x9c], edi
jle 0x10021cae
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x14]
call fcn.10020650
mov eax, dword [esp + 0xac]
add esp, 4
movsd xmm2, qword [esp + 0x10]
jmp 0x10021cb8
movsd xmm2, qword [esp + 0x40]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10021d00
mov dword [esp + 0x7c], 0x39500000
mov dword [esp + 0x78], 0
movsd xmm0, qword [esp + 0x78]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 0x10], xmm2
test dword [esp + 0x14], 0x7ff00000
movsd qword [esp + 0x40], xmm2
jne 0x10021d00
call fcn.1004f401
movsd xmm2, qword [esp + 0x40]
mov dword [eax], 0x22
movsd xmm3, qword [esp + 0x60]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xdc]
test ecx, ecx
je 0x10021d1b
mov dword [ecx], esi
test eax, eax
je 0x10021d23
xorpd xmm2, xmm3
pop edi
movapd xmm0, xmm2
pop esi
mov esp, ebp
pop ebp
ret