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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x818
movsd xmm3, qword [0x1017a220]
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 0x10030323
jmp 0x100302f0
movzx eax, byte [eax + 0x1003183c]
jmp dword [eax*4 + 0x10031828]
mov al, byte [esi]
mov byte [esp + 0x4f], al
cmp al, 0x30
jne 0x1003034d
mov dword [esp + 0x44], 1
inc esi
cmp byte [esi], 0x30
je 0x10030335
mov al, byte [esi]
mov dword [esp + 0x28], esi
mov byte [esp + 0x4f], al
test al, al
je 0x10031803
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 0x100303ae
lea ecx, [ecx]
cmp edi, 0x39
jg 0x100303aa
cmp eax, 9
jge 0x10030385
lea eax, [edx - 6]
lea eax, [edx + eax*4]
lea edx, [edi + eax*2]
jmp 0x10030393
cmp eax, 0x10
jge 0x10030397
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 0x10030370
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 0x100304ed
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 0x10030453
cmp edi, 0x30
jne 0x10030437
xor eax, eax
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
inc eax
mov dword [esp + 0x28], esi
cmp edi, 0x30
je 0x10030420
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x100304e9
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x58], esi
jmp 0x10030463
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x100304e5
mov eax, dword [esp + 0x3c]
inc eax
sub edi, 0x30
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], edi
je 0x100304d3
add dword [esp + 0x30], eax
cmp eax, 1
jle 0x100304a9
mov esi, dword [esp + 0x20]
lea edi, [eax - 1]
mov eax, esi
inc esi
cmp eax, 9
jge 0x10030490
lea edx, [edx + edx*4]
add edx, edx
jmp 0x1003049a
cmp esi, 0x10
jg 0x1003049a
lea ecx, [ecx + ecx*4]
add ecx, ecx
dec edi
jne 0x10030481
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 0x100304be
lea eax, [edx + edx*4]
lea edx, [edi + eax*2]
jmp 0x100304cb
cmp dword [esp + 0x20], 0x10
jg 0x100304cb
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 0x10030453
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
cmp edi, 0x65
je 0x10030503
cmp edi, 0x45
jne 0x100305ee
test eax, eax
jne 0x10030517
cmp dword [esp + 0x3c], eax
jne 0x10030517
cmp dword [esp + 0x44], eax
je case.0x10030632.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 0x10030540
sub eax, 2
jne 0x10030549
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 0x100305e6
cmp edi, 0x30
jne 0x1003056e
lea ebx, [ebx]
movsx edi, byte [esi + 1]
inc esi
cmp edi, 0x30
je 0x10030560
mov dword [esp + 0x28], esi
lea eax, [edi - 0x31]
cmp eax, 8
ja 0x100305e2
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 0x100305b4
mov ecx, eax
cmp edi, 0x39
jg 0x100305ac
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 0x10030591
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov eax, esi
sub eax, dword [esp + 0x5c]
cmp eax, 8
jg 0x100305ca
mov eax, dword [esp + 0x18]
cmp eax, 0x4e1f
jle 0x100305d3
mov eax, 0x4e1f
mov dword [esp + 0x18], eax
cmp dword [esp + 0x50], 0
je 0x100305ee
neg eax
mov dword [esp + 0x18], eax
jmp 0x100305ee
xor eax, eax
jmp 0x100305f2
mov esi, dword [esp + 0x54]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x20], 0
jne 0x10030718
cmp dword [esp + 0x3c], 0
jne 0x10031803
cmp dword [esp + 0x44], 0
jne 0x10031803
mov eax, dword [esp + 0x48]
test eax, eax
jne case.0x10030632.74
add edi, 0xffffffb7
cmp edi, 0x25
ja case.0x10030632.74
movzx eax, byte [edi + 0x10031878]
jmp dword [eax*4 + 0x1003186c]
mov edx, 0x6e
mov edi, 0x10179d25
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10030653
add ecx, 0x20
cmp ecx, edx
jne case.0x10030632.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x10030643
mov edx, esi
mov dword [esp + 0x2c], 0x10179d35
mov edi, 0x69
movsx ecx, byte [edx + 1]
lea edx, [edx + 1]
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x10030684
add ecx, 0x20
cmp ecx, edi
jne 0x1003069d
mov eax, dword [esp + 0x2c]
movsx edi, byte [eax]
inc eax
mov dword [esp + 0x2c], eax
test edi, edi
jne 0x10030672
lea esi, [edx + 1]
jmp 0x1003069e
inc esi
mov dword [esp + 0xc], 0x7ff00000
mov dword [esp + 8], 0
movsd xmm2, qword [esp + 8]
jmp 0x10031803
mov edx, 0x61
mov edi, 0x10179d31
movsx ecx, byte [esi + 1]
inc esi
lea eax, [ecx - 0x41]
cmp eax, 0x19
ja 0x100306d3
add ecx, 0x20
cmp ecx, edx
jne case.0x10030632.74
movsx edx, byte [edi]
inc edi
test edx, edx
jne 0x100306c3
inc esi
mov dword [esp + 0xc], 0x7ff80000
mov dword [esp + 0x28], esi
mov dword [esp + 8], edx
cmp byte [esi], 0x28
jne 0x100306ae
lea edx, [esp + 0x28]
lea ecx, [esp + 8]
call fcn.1002fbb0
movsd xmm2, qword [esp + 8]
jmp 0x100317ff
mov esi, dword [esp + 0x54]
xor eax, eax
jmp 0x10031807
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 + 0x1017a210]
mov eax, dword [esp + 0x54]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
cmp eax, 9
jle 0x100307ab
movsd xmm1, qword [eax*8 + 0x101785c0]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
mulsd xmm1, xmm2
addsd xmm0, qword [ecx*8 + 0x1017a210]
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 0x10030824
test eax, eax
je 0x10031803
jle 0x1003080c
cmp eax, 0x16
jg 0x100307d8
movsd xmm0, qword [eax*8 + 0x10178608]
mulsd xmm0, xmm2
movaps xmm2, xmm0
jmp 0x10031803
mov ecx, 0xf
sub ecx, edi
lea eax, [ecx + 0x16]
cmp dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
jg 0x10030824
movsd xmm0, qword [ecx*8 + 0x10178608]
sub eax, ecx
mulsd xmm0, xmm2
mulsd xmm0, qword [eax*8 + 0x10178608]
movaps xmm2, xmm0
jmp 0x10031803
cmp eax, 0xffffffea
jl 0x10030824
shl eax, 3
mov ecx, 0x10178608
sub ecx, eax
divsd xmm2, qword [ecx]
jmp 0x10031803
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 0x100308fb
mov ecx, eax
and ecx, 0xf
je 0x1003085c
movsd xmm0, qword [ecx*8 + 0x10178608]
mulsd xmm0, xmm2
movaps xmm2, xmm0
movsd qword [esp + 8], xmm2
and eax, 0xfffffff0
je 0x100309f7
cmp eax, 0x134
jg 0x1003149e
sar eax, 4
xor ecx, ecx
cmp eax, 1
jle 0x1003089b
lea ebx, [ebx]
test al, 1
je 0x10030893
mulsd xmm2, qword [ecx*8 + 0x101786c0]
movsd qword [esp + 8], xmm2
sar eax, 1
inc ecx
cmp eax, 1
jg 0x10030880
movsd xmm0, qword [ecx*8 + 0x101786c0]
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 0x1003149e
cmp ecx, 0x7c900000
jbe 0x100308ed
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x100309f7
add eax, 0x3500000
mov dword [esp + 0xc], eax
jmp 0x100309f7
jns 0x100309f7
neg eax
mov ecx, eax
and ecx, 0xf
je 0x1003091f
divsd xmm2, qword [ecx*8 + 0x10178608]
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 8], xmm2
sar eax, 4
test eax, eax
je 0x100309f7
cmp eax, 0x20
jge 0x100316f0
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 0x10030981
mov ecx, 0x101785e0
jmp 0x10030960
test al, 1
je 0x1003096e
mulsd xmm2, qword [ecx]
movsd qword [esp + 8], xmm2
sar eax, 1
add ecx, 8
test eax, eax
jg 0x10030960
mov ecx, dword [esp + 0x44]
movsd qword [esp + 0x30], xmm2
test ecx, ecx
je 0x100309e3
mov eax, dword [esp + 0xc]
mov ecx, 0x6b
shr eax, 0x14
and eax, 0x7ff
sub ecx, eax
test ecx, ecx
jle 0x100309e3
cmp ecx, 0x20
jl 0x100309d2
mov dword [esp + 8], 0
cmp ecx, 0x35
jl 0x100309be
mov dword [esp + 0xc], 0x3700000
movsd xmm0, qword [esp + 8]
jmp 0x100309e9
add ecx, 0xffffffe0
or eax, 0xffffffff
shl eax, cl
and dword [esp + 0xc], eax
movsd xmm0, qword [esp + 8]
jmp 0x100309e9
or eax, 0xffffffff
shl eax, cl
and dword [esp + 8], eax
movsd xmm0, qword [esp + 8]
jmp 0x100309e9
movsd xmm0, qword [esp + 0x30]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x100316f0
mov esi, dword [esp + 0x14]
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
cmp edi, 0x28
jle 0x10030acf
mov eax, 0x12
mov ecx, eax
cmp esi, eax
jge 0x10030a23
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 0x10030a3e
cmp eax, edi
jl 0x10030a3e
lea eax, [edi - 1]
cmp byte [eax + esi], 0x30
jne 0x10030a47
dec ecx
jmp 0x10030a30
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 0x10030acf
xor edx, edx
xor esi, esi
cmp dword [esp + 0x14], edx
jle 0x10030a9a
mov edi, dword [esp + 0x14]
jmp 0x10030a80
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 0x10030a80
mov edi, dword [esp + 0x20]
cmp esi, edi
jge 0x10030acb
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 0x10030ab2
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.1002ef30
movsd xmm0, qword [0x1017a198]
mov ecx, eax
movsd qword [esp + 0x12c], xmm0
add esp, 0xc
movsd xmm0, qword [0x1017a188]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x1017a178]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x1017a1f0]
movsd qword [esp + 0x138], xmm0
movsd xmm0, qword [0x1017a1d0]
movsd qword [esp + 0x110], xmm0
movsd xmm0, qword [0x1017a158]
movsd qword [esp + 0x130], xmm0
movsd xmm0, qword [0x1017a170]
movsd qword [esp + 0x118], xmm0
movsd xmm0, qword [0x1017a180]
mov dword [esp + 0x50], ecx
movsd qword [esp + 0x128], xmm0
mov ecx, dword [ecx + 4]
mov esi, 1
call fcn.1002ed50
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.1011b250
add esp, 0xc
lea eax, [esp + 0xdc]
lea edx, [esp + 0x5c]
lea ecx, [esp + 8]
push eax
call fcn.1002f970
add esp, 4
mov dword [esp + 0x3c], eax
mov ecx, esi
call fcn.1002f080
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x10030bda
xor edx, edx
mov dword [esp + 0x54], eax
xor esi, esi
jmp 0x10030be8
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 0x10030c00
add esi, ecx
mov dword [esp + 0x2c], esi
jmp 0x10030c06
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 0x10030c29
add ecx, 0x433
jmp 0x10030c30
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 0x10030c66
sub ecx, eax
sub esi, eax
sub dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x10030de7
mov ecx, dword [esp + 0x14]
call fcn.1002f260
mov edx, dword [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.1002f120
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x10030ddf
cmp dword [ecx + 4], 7
jle 0x10030cb4
push ecx
call fcn.1011bc41
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, eax
mov dword [esp + 0x3c], ecx
jmp 0x10030deb
mov eax, dword [esp + 0x24]
test al, 1
je 0x10030ccf
and eax, 0xfffffffe
lea ecx, [esp + 0x560]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov eax, dword [0x10193a28]
test eax, 0xfffffffe
jne 0x10030d2e
mov ecx, 1
xor eax, eax
mov edx, 0x10193a28
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10030d14
mov eax, dword [0x10193a28]
cmp eax, 1
jne 0x10030d2e
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10193a28]
cmp eax, 1
je 0x10030d00
jmp 0x10030d2e
push 0x7d0
push 0x10193a2c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10193a28], 0x10193a2c
mov eax, dword [0x10193a28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx*4 + 0x101949b0]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x101949b0], edx
test al, 2
je 0x10030d6c
and eax, 0xfffffffd
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov eax, dword [0x10193a28]
test eax, 0xfffffffe
jne 0x10030dc4
mov ecx, 1
xor eax, eax
mov edx, 0x10193a28
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10030daa
mov eax, dword [0x10193a28]
cmp eax, 1
jne 0x10030dc4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10193a28]
cmp eax, 1
je 0x10030d96
jmp 0x10030dc4
push 0x7d0
push 0x10193a2c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10193a28], 0x10193a2c
mov eax, dword [0x10193a28]
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 0x10030deb
mov ecx, dword [esp + 0x3c]
test esi, esi
jle 0x10030dfe
mov edx, esi
call fcn.1002f410
mov esi, eax
mov dword [esp + 0x3c], esi
jmp 0x10030e02
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x10030e1b
mov edx, eax
call fcn.1002f260
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x10030e30
mov edx, eax
call fcn.1002f410
mov ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x10030e4b
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1002f410
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edx, ecx
mov ecx, esi
call fcn.1002f620
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 0x10030ec7
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 0x10030eb5
cmp ecx, esi
jbe 0x10030f4d
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10030ea0
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 0x10030ed8
test ecx, ecx
jle 0x10031486
test ecx, ecx
js 0x100315fc
je 0x100314ca
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xd8]
call fcn.1002f810
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd4]
movapd xmm1, xmm0
movsd qword [esp + 0xb8], xmm1
call fcn.1002f810
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 0x10030f54
shl esi, 0x14
add dword [esp + 0xbc], esi
movsd xmm1, qword [esp + 0xb8]
jmp 0x10030f6a
xor ecx, ecx
jmp 0x10030ebf
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 0x100310ae
test edx, edx
je 0x10030f9c
movsd xmm2, qword [esp + 0xe0]
movapd xmm1, xmm2
jmp 0x10030fd9
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1003108a
test eax, 0xfffff
jne 0x10031097
movsd xmm0, qword [esp + 0xe0]
comisd xmm0, xmm1
jbe 0x1003107c
movsd xmm1, qword [esp + 0xc0]
movapd xmm2, xmm1
xorpd xmm2, xmmword [esp + 0x60]
mov esi, eax
and esi, 0x7ff00000
cmp esi, 0x7fe00000
jne 0x100310dd
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 0x100310c8
cmp dword [esp + 0x84], 0x7fefffff
jne 0x10031067
cmp dword [esp + 0x80], 0xffffffff
je 0x1003149a
mov dword [esp + 0xc], 0x7fefffff
mov dword [esp + 8], 0xffffffff
jmp 0x100311fd
mulsd xmm1, qword [esp + 0xc0]
jmp 0x10030fcf
cmp ecx, 1
jne 0x10031097
test eax, eax
je 0x100316ce
movsd xmm1, qword [esp + 0xe0]
movsd xmm2, qword [esp + 0x138]
jmp 0x10030fd9
mulsd xmm1, qword [esp + 0xc0]
test edx, edx
je 0x10030fcf
movapd xmm2, xmm1
jmp 0x10030fd9
add ecx, 0x3500000
mov dword [esp + 0xc], ecx
movsd xmm0, qword [esp + 8]
jmp 0x10031189
cmp dword [esp + 0x44], 0
je 0x10031154
cmp esi, 0x6a00000
ja 0x10031154
movsd xmm0, qword [esp + 0x110]
comisd xmm0, xmm1
jb 0x10031134
movapd xmm0, xmm1
call fcn.10144ba1
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 + 0x1017a210]
movapd xmm2, xmm1
test edx, edx
jne 0x10031134
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 0x100311fd
cmp dword [esp + 0x44], 0
jne 0x100311fd
mov eax, ecx
and eax, 0x7ff00000
cmp esi, eax
jne 0x100311fd
cvttsd2si eax, xmm1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm1, xmm0
test edx, edx
jne 0x100311db
cmp dword [esp + 8], edx
jne 0x100311db
test ecx, 0xfffff
jne 0x100311db
movsd xmm0, qword [esp + 0x130]
comisd xmm0, xmm1
jmp 0x100311f7
movsd xmm0, qword [esp + 0x118]
comisd xmm0, xmm1
ja 0x10031741
comisd xmm1, xmmword [esp + 0x128]
ja 0x10031741
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x100312e6
cmp dword [esi + 4], 7
jle 0x1003121d
push esi
call fcn.1011bc41
add esp, 4
jmp 0x100312e6
mov eax, dword [esp + 0x24]
test al, 4
je 0x10031238
and eax, 0xfffffffb
lea ecx, [esp + 0x140]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov eax, dword [0x10193a28]
test eax, 0xfffffffe
jne 0x10031290
mov ecx, 1
xor eax, eax
mov edx, 0x10193a28
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10031276
mov eax, dword [0x10193a28]
cmp eax, 1
jne 0x10031290
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10193a28]
cmp eax, 1
je 0x10031262
jmp 0x10031290
push 0x7d0
push 0x10193a2c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [0x10193a28], 0x10193a2c
mov eax, dword [0x10193a28]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x101949b0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x101949b0], esi
test al, 8
je 0x100312ca
and eax, 0xfffffff7
lea ecx, [esp + 0x400]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
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 0x1003136a
cmp dword [esi + 4], 7
jle 0x100312ff
push esi
call fcn.1011bc41
add esp, 4
jmp 0x1003136a
mov eax, dword [esp + 0x24]
test al, 0x10
je 0x1003131a
and eax, 0xffffffef
lea ecx, [esp + 0x6c0]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x101949b0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x101949b0], esi
test al, 0x20
je 0x10031359
and eax, 0xffffffdf
lea ecx, [esp + 0x1f0]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], 7
jle 0x1003137f
push esi
call fcn.1011bc41
add esp, 4
jmp 0x100313ec
mov eax, dword [esp + 0x24]
test al, 0x40
je 0x1003139a
and eax, 0xffffffbf
lea ecx, [esp + 0x350]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x101949b0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x101949b0], esi
test al, al
jns 0x100313db
and eax, 0xffffff7f
lea ecx, [esp + 0x4b0]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x1c]
cmp dword [esi + 4], 7
jle 0x10031408
push esi
call fcn.1011bc41
mov ecx, dword [esp + 0x54]
add esp, 4
jmp 0x10030b71
mov eax, dword [esp + 0x24]
test eax, 0x100
je 0x10031428
and eax, 0xfffffeff
lea ecx, [esp + 0x610]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 4]
mov eax, dword [ecx*4 + 0x101949b0]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [ecx*4 + 0x101949b0], esi
test eax, 0x200
je 0x1003146c
and eax, 0xfffffdff
lea ecx, [esp + 0x770]
mov dword [esp + 0x24], eax
call fcn.1000b010
mov ecx, 0x10193a28
call fcn.10006440
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x50]
jmp 0x10030b71
test edx, edx
jne 0x10031735
mov dword [esp + 0xa4], edi
jmp 0x10031604
mov esi, dword [esp + 0x28]
call fcn.10124b9d
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 0x10031803
mov esi, dword [esp + 0xc]
test edx, edx
mov edx, dword [esp + 8]
je 0x10031535
mov eax, esi
and eax, 0xfffff
cmp eax, 0xfffff
jne 0x10031545
cmp dword [esp + 0x44], 0
je 0x1003150a
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6a00000
ja 0x1003150a
shr eax, 0x14
mov ecx, 0x6b
sub ecx, eax
or eax, 0xffffffff
shl eax, cl
jmp 0x1003150d
or eax, 0xffffffff
cmp edx, eax
jne 0x10031545
and esi, 0x7ff00000
mov dword [esp + 8], 0
add esi, 0x100000
mov dword [esp + 0x98], 0
jmp 0x10031731
test esi, 0xfffff
jne 0x10031545
test edx, edx
je 0x100316b2
test dl, 1
je 0x10031735
mov ecx, dword [esp + 0x30]
and esi, 0x7ff00000
sub esi, 0x3400000
test ecx, ecx
je 0x100315a2
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 0x10031741
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 0x1003158f
cmp dword [esp + 0xa4], edi
jle 0x100316ea
mov dword [esp + 0xb4], 1
jmp 0x10031741
test edx, edx
jne 0x10031735
cmp dword [esp + 8], 0
jne 0x10031735
mov esi, dword [esp + 0xc]
test esi, 0xfffff
jne 0x10031735
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jbe 0x10031735
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x14], 0
jne 0x10031645
cmp dword [ecx + 0x10], 1
jle 0x10031735
mov edx, 1
call fcn.1002f410
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 0x100316aa
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 0x100316a0
lea esp, [esp]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add eax, 0x14
cmp ecx, eax
jbe 0x10031735
mov eax, dword [ecx - 4]
sub ecx, 4
sub edx, 4
cmp eax, dword [edx]
je 0x10031680
mov eax, dword [ecx]
cmp eax, dword [edx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x10031735
cmp dword [esp + 0x44], 0
je 0x1003171c
mov eax, esi
and eax, 0x7ff00000
cmp eax, 0x6b00000
jg 0x1003171c
cmp eax, 0x3700000
jg 0x10031735
cmp dword [esp + 0xa4], edi
jle 0x100316e4
mov dword [esp + 0xb4], 1
jmp 0x10031735
movsd xmm1, qword [esp + 0x78]
mov esi, dword [esp + 0x28]
jmp 0x100316f6
movsd xmm1, qword [esp + 0x78]
movapd xmm0, xmm1
movsd qword [esp + 0x30], xmm0
call fcn.10124b9d
movsd xmm2, qword [esp + 0x30]
movsd xmm3, qword [esp + 0x60]
mov dword [eax], 0x22
jmp 0x10031803
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.1002ee10
mov ecx, dword [esp + 0x48]
call fcn.1002ee10
mov ecx, dword [esp + 0x14]
call fcn.1002ee10
mov ecx, dword [esp + 0x50]
call fcn.1002ee10
mov ecx, dword [esp + 0x1c]
call fcn.1002ee10
cmp dword [esp + 0xa4], edi
jle 0x1003179e
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xc]
call fcn.1002ff10
mov eax, dword [esp + 0xb4]
add esp, 4
movsd xmm2, qword [esp + 8]
jmp 0x100317a8
movsd xmm2, qword [esp + 0x30]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x100317f9
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 0x100317f9
call fcn.10124b9d
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 0x10031814
mov dword [ecx], esi
test eax, eax
je 0x1003181c
xorpd xmm2, xmm3
pop edi
movapd xmm0, xmm2
pop esi
mov esp, ebp
pop ebp
ret