Function at 0x1003c320
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a16f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x100c50e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
cmp dword [edi + 0x5d4], 0
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x54], esi
mov byte [edi + 0x5e8], 0
je 0x1003c398
push dword [edi + 0x5d4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 0x5d4], 0
cmp byte [edi + 0x531], 0
je 0x1003c597
cmp dword [edi + 0x620], 0
jne 0x1003c597
test esi, esi
je 0x1003c597
movsx eax, byte [edi + 0x520]
push eax
push esi
call fcn.10084d40
add esp, 8
test eax, eax
jne 0x1003c597
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003c3d6
mov al, byte [edi + 0x521]
sub esi, ecx
je 0x1003c405
movsx eax, al
push esi
push eax
mov eax, dword [ebp - 0x54]
push eax
call fcn.1009f060
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1003c405
mov edx, dword [ebp - 0x54]
sub ecx, edx
jmp 0x1003c40b
mov edx, dword [ebp - 0x54]
or ecx, 0xffffffff
cmp esi, ecx
cmovb ecx, esi
cmp byte [edi + 0x530], 0
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x1c], ecx
je 0x1003c432
mov eax, dword [edi + 0x60]
shl eax, 4
add eax, dword [edi + 0x38]
push ecx
push edx
push esi
mov eax, dword [eax]
sub eax, esi
push eax
jmp 0x1003c45b
cmp ecx, esi
jb 0x1003cc45
mov eax, ecx
or edx, 0xffffffff
mov ecx, dword [ebp - 0x54]
sub eax, esi
cmp eax, 0xffffffff
cmovb edx, eax
mov eax, dword [edi + 0x60]
push edx
add ecx, esi
shl eax, 4
add eax, dword [edi + 0x38]
push ecx
push 0
push dword [eax]
mov ecx, edi
call fcn.1003c110
mov eax, dword [edi + 0x60]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x1c]
shl eax, 4
add eax, dword [edi + 0x38]
push dword [ebp - 0x54]
mov edi, dword [eax]
mov dword [ebp - 0x44], 0
sub edi, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10007820
mov dword [ebp - 4], 0
lea eax, [ebp - 0x138]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
push 0x64
cmovae esi, dword [ebp - 0x44]
push 0
push eax
call fcn.10085460
mov ecx, dword [ebp - 0x5c]
sub esp, 0x58
mov dword [ebp - 0x11c], esi
lea esi, [ebp - 0x138]
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x108], edi
mov edi, esp
mov eax, dword [ecx + 0x620]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0xf4], eax
mov eax, dword [ecx]
mov ecx, 0x19
mov dword [ebp - 0x130], 0x7ee
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0xdc], 6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x5c]
mov ecx, esi
call dword [eax + 0x88]
mov ecx, dword [esi + 0x538]
cmp dword [ecx + 4], 0
je 0x1003c55a
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi + 0x538]
mov eax, dword [edi + 4]
test eax, eax
je 0x1003c54c
push eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
mov dword [edi + 4], 0
mov byte [esi + 0x4ec], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1003cc25
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003c588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cc4a
push edx
push ecx
call fcn.1008376a
add esp, 8
jmp 0x1003cc25
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [edi + 0xe0]
call fcn.100397e0
push 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0xe0]
call fcn.100397e0
push 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0xe0]
call fcn.100397e0
push 3
lea eax, [ebp - 0x38]
push eax
lea ecx, [edi + 0xe0]
call fcn.100397e0
cmp dword [edi + 0x23c], 0x20
mov eax, dword [edi + 0x534]
mov dword [ebp - 0x6c], eax
je 0x1003c651
mov eax, dword [edi]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, edi
call dword [eax + 0x100]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x23c]
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [edi + 0xf4]
push dword [eax + edx*8 + 0x70]
call dword [ebp - 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.10090466
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x1003c65a
mov edx, dword [ecx]
push 1
call dword [edx]
jmp 0x1003c65a
mov eax, dword [edi + 0x128]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x288]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x1003c67d
cmp dword [eax + 0x1e4], 0xfde9
mov byte [ebp - 0x5c], 1
je 0x1003c681
mov byte [ebp - 0x5c], 0
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x38]
shl ecx, 4
push dword [ecx + eax + 4]
push dword [ecx + eax]
lea eax, [ebp - 0x80]
push ecx
push eax
mov ecx, edi
call fcn.10042d40
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x38]
add ecx, ecx
cmp byte [edi + 0x4ec], 0
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x64], eax
je 0x1003c6e8
mov ecx, dword [edi + 0x538]
cmp dword [ecx + 4], 0
je 0x1003c6e8
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, dword [edi + 0x538]
mov eax, dword [esi + 4]
test eax, eax
je 0x1003c6da
push eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
mov dword [esi + 4], 0
mov byte [edi + 0x4ec], 0
movups xmm0, xmmword [ebp - 0x50]
mov ecx, dword [edi + 0x538]
sub esp, 0x24
mov esi, dword [ebp - 0x6c]
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], esi
call dword [edx + 0x50]
push dword [ebp - 0x70]
mov ecx, dword [edi + 0x538]
lea esi, [edi + 0xc0]
push dword [ebp - 0x5c]
movups xmm0, xmmword [ebp - 0x80]
push dword [ebp - 0x1c]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
push 2
push esi
movups xmmword [eax], xmm0
call dword [edx + 8]
mov ecx, dword [edi + 0x538]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0xd0]
mov esi, dword [ebp - 0x68]
mov byte [edi + 0x4ec], 1
mov dword [edi + 0x540], esi
mov dword [edi + 0x53c], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
mov eax, dword [edi + 0x38]
push ecx
mov ecx, dword [edi + 0x60]
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov ecx, edi
sub eax, esi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10042e40
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0xc4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1000aa20
movsd xmm0, qword [ebp - 0x50]
add esp, 0xc
addsd xmm0, qword [ebp - 0x80]
push 2
cvttsd2si ecx, xmm0
movsd xmm0, qword [ebp - 0x48]
addsd xmm0, qword [ebp - 0x78]
cvttsd2si eax, xmm0
push eax
push ecx
call dword [sym.imp.USER32.dll_MonitorFromPoint]
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.10022ba0
add esp, 4
xorps xmm3, xmm3
movups xmm0, xmmword [eax]
movd ecx, xmm0
movups xmmword [ebp - 0x28], xmm0
psrldq xmm0, 8
movd eax, xmm0
cmp ecx, eax
jge 0x1003c823
movd xmm2, dword [ebp - 0x1c]
movd xmm1, dword [ebp - 0x24]
cvtdq2pd xmm1, xmm1
cvtdq2pd xmm2, xmm2
subsd xmm1, qword [ebp - 0x48]
subsd xmm2, qword [ebp - 0x48]
movsd qword [ebp - 0x60], xmm1
movsd qword [ebp - 0x20], xmm2
jmp 0x1003c836
xorps xmm0, xmm0
movsd qword [ebp - 0x20], xmm3
movsd qword [ebp - 0x60], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
subsd xmm2, xmm1
ucomisd xmm2, xmm3
lahf
test ah, 0x44
jp 0x1003c86e
movups xmm0, xmmword [ebp - 0xd0]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [ebp - 0x40], xmm0
movsd xmm3, qword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x48]
movsd qword [ebp - 0x20], xmm3
movsd qword [ebp - 0x60], xmm0
mov eax, dword [edi + 0x54c]
movsd xmm2, qword [ebp - 0xc0]
movsd xmm1, qword [ebp - 0x80]
movaps xmm0, xmm2
mov esi, dword [edi + 0x550]
movd xmm3, eax
cvtdq2pd xmm3, xmm3
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], eax
subsd xmm0, xmm3
movups xmmword [ebp - 0xb0], xmm3
comisd xmm1, xmm0
jb 0x1003c940
mov edx, dword [edi + 8]
xor ecx, ecx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
subsd xmm0, xmm2
addsd xmm0, xmm3
cvttsd2si eax, xmm0
test eax, eax
cmovns ecx, eax
cmp dword [edi + 0x258], 0
jne 0x1003c915
cmp edx, ecx
je 0x1003c915
mov eax, dword [edi]
or dword [edi + 0x41c], 8
mov dword [edi + 8], ecx
mov ecx, edi
call dword [eax + 0x44]
mov esi, dword [edi]
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
mov eax, dword [esi + 0x1c]
call eax
sub esp, 0x20
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
mov ecx, edi
call dword [esi + 0x28]
mov esi, dword [ebp - 0x64]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x38]
shl ecx, 4
push dword [ecx + eax + 4]
push dword [ecx + eax]
lea eax, [ebp - 0x80]
push ecx
push eax
mov ecx, edi
call fcn.10042d40
movups xmm0, xmmword [ebp - 0x80]
movups xmmword [ebp - 0x80], xmm0
cmp dword [edi + 0xd0], 0
je 0x1003c971
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
call eax
movsd xmm1, qword [eax]
movsd xmm0, qword [eax + 8]
addsd xmm1, qword [ebp - 0x80]
addsd xmm0, qword [ebp - 0x78]
unpcklpd xmm1, xmm0
movups xmmword [ebp - 0x80], xmm1
mov ecx, dword [edi + 0x538]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
movsd xmm5, qword [ebp - 0x80]
movsd xmm4, qword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x78]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movd xmm6, esi
cvtdq2pd xmm6, xmm6
subsd xmm5, xmm0
movaps xmm0, xmm4
subsd xmm0, xmm6
movsd qword [ebp - 0x50], xmm5
comisd xmm1, xmm0
jb 0x1003c9f1
movsd xmm2, qword [ebp - 0x60]
movaps xmm0, xmm2
addsd xmm0, xmm4
mulsd xmm0, qword [0x100ba978]
comisd xmm1, xmm0
jb 0x1003c9f1
movaps xmm3, xmm1
subsd xmm3, xmm6
comisd xmm2, xmm3
movsd qword [ebp - 0x48], xmm3
jbe 0x1003ca06
movaps xmm0, xmm2
subsd xmm0, xmm3
movaps xmm3, xmm2
cvttsd2si eax, xmm0
sub esi, eax
jmp 0x1003ca01
movd xmm3, dword [edi + 0x128]
cvtdq2pd xmm3, xmm3
addsd xmm3, xmm1
movsd qword [ebp - 0x48], xmm3
movups xmm2, xmmword [ebp - 0xb0]
movups xmm0, xmmword [ebp - 0x50]
cvttsd2si ecx, xmm4
cvttsd2si eax, xmm3
addsd xmm2, xmm5
add eax, esi
cmp ecx, eax
cmovl eax, ecx
mov ecx, dword [edi + 0x538]
sub esp, 0x20
movd xmm1, eax
mov eax, esp
cvtdq2pd xmm1, xmm1
movups xmmword [eax], xmm0
unpcklpd xmm2, xmm1
movups xmmword [eax + 0x10], xmm2
lea eax, [edi + 0xc0]
push eax
call fcn.10022c40
mov eax, dword [edi + 0x23c]
mov ecx, eax
mov esi, dword [edi + 0x538]
shl ecx, 4
sub ecx, eax
mov eax, dword [edi + 0xf4]
mov edx, dword [esi]
push dword [eax + ecx*8 + 0x70]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [edi + 0x23c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edi + 0xf4]
cvttsd2si edx, qword [eax + ecx*8 + 0x38]
mov ecx, dword [edi + 0x538]
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x64], edx
call dword [eax + 0xc]
mov ecx, dword [edi + 0x538]
lea eax, [edi + 0x4e0]
push eax
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ecx, dword [ebp - 0x54]
mov eax, 0x100ac8ea
test ecx, ecx
cmovne eax, ecx
lea ecx, [edi + 0x4ec]
push eax
call fcn.1003ef90
mov ecx, dword [edi + 0x538]
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
movsd xmm0, qword [ebp - 0x88]
subsd xmm0, qword [ebp - 0x98]
mov esi, dword [ebp - 0x70]
cvttsd2si eax, xmm0
movsd xmm0, qword [ebp - 0x90]
subsd xmm0, qword [ebp - 0xa0]
mov dword [ebp - 0x6c], eax
cvttsd2si eax, xmm0
cmp esi, eax
cmovl esi, eax
mov eax, dword [edi + 0x624]
test eax, eax
je 0x1003cb1d
imul eax, dword [ebp - 0x64]
cmp eax, esi
cmovl esi, eax
mov ecx, dword [edi + 0x538]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
movsd xmm1, qword [ebp - 0x80]
movd xmm4, dword [ebp - 0x6c]
movsd xmm3, qword [ebp - 0x20]
movd xmm0, eax
mov eax, dword [edi + 0x128]
cvtdq2pd xmm0, xmm0
movd xmm5, eax
subsd xmm1, xmm0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm5, xmm5
addsd xmm0, xmm1
movsd qword [ebp - 0xa0], xmm1
movsd xmm1, qword [ebp - 0x78]
cvtdq2pd xmm4, xmm4
movsd qword [ebp - 0x90], xmm0
addsd xmm5, xmm1
movaps xmm0, xmm3
subsd xmm0, xmm4
comisd xmm5, xmm0
jb 0x1003cbb7
movsd xmm2, qword [ebp - 0x60]
cdq
addsd xmm2, xmm3
sub eax, edx
sar eax, 1
mulsd xmm2, qword [0x100ba978]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm1
comisd xmm0, xmm2
jb 0x1003cbb7
subsd xmm1, xmm4
jmp 0x1003cbba
movaps xmm1, xmm5
mov ecx, dword [edi + 0x538]
addsd xmm4, xmm1
sub esp, 0x20
movsd qword [ebp - 0x98], xmm1
movups xmm0, xmmword [ebp - 0xa0]
mov eax, esp
movsd qword [ebp - 0x88], xmm4
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x90]
movups xmmword [eax + 0x10], xmm0
lea eax, [edi + 0xc0]
push eax
call fcn.10022c40
mov eax, dword [edi + 0x538]
push 4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x538]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp - 0x68], 0
je 0x1003cc25
mov ecx, edi
call fcn.1003cce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10083210
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.10014bd0
call fcn.10089306
int3