Function at 0x4ca150
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541300
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x583384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x6c], 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], esi
jne 0x4ca1f9
mov eax, dword [ebp + 0x14]
cmp esi, dword [edi + 0xb8]
jne 0x4ca19b
cmp eax, dword [edi + 0xbc]
je 0x4ca1f9
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
push esi
mov ecx, edi
movups xmmword [ebp - 0x20], xmm0
call fcn.004c2f30
test eax, eax
jne 0x4ca200
mov dword [edi + 0xb8], 0xffffffff
mov dword [edi + 0xbc], 0xffffffff
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [edi + 0x1e8]
jne 0x4ca1db
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4ca1f9
push 0
push dword [edi + 0x1e8]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x4ca422
push dword [ebp + 0x14]
mov ecx, edi
call fcn.004aa470
movups xmm0, xmmword [ebp - 0x20]
mov edx, dword [ebp + 0x14]
neg edx
mov dword [ebp - 0x3c], eax
movd ecx, xmm0
lea eax, [ebp - 0x30]
sbb edx, edx
push 0
add edx, 4
push 0xfffffffffffffffc
add edx, ecx
movups xmmword [ebp - 0x30], xmm0
push eax
mov dword [ebp - 0x30], edx
call dword [sym.imp.USER32.dll_InflateRect]
lea ecx, [ebp - 0x78]
call fcn.00413280
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x3c]
mov ecx, edi
push esi
call fcn.004c3650
test eax, eax
je 0x4ca3e2
cmp dword [ebp - 0x78], 0
je 0x4ca3e2
mov eax, dword [ebp - 0x3c]
test eax, eax
js 0x4ca27f
cmp eax, dword [edi + 0x35c]
jge 0x4ca27f
push eax
mov ecx, edi
call fcn.0050f3a0
jmp 0x4ca281
xor eax, eax
sub eax, 2
jne 0x4ca373
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041fe60
add esp, 8
mov ecx, edi
movups xmm0, xmmword [eax]
push dword [ebp - 0x3c]
movups xmmword [ebp - 0x20], xmm0
push esi
call fcn.004c3870
test eax, 0x400
je 0x4ca2cc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00417ed0
add esp, 8
mov byte [ebp - 4], 1
jmp 0x4ca2e7
test eax, 0x800
lea eax, [ebp - 0x20]
push eax
je 0x4ca2fe
lea eax, [ebp - 0x38]
push eax
call fcn.00417f40
add esp, 8
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x60]
call fcn.00413fa0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00406240
jmp 0x4ca373
lea eax, [ebp - 0x4c]
push eax
call fcn.00417f40
mov esi, eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00417ed0
push 0x546b80
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
call fcn.00414170
push esi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 5
push eax
call fcn.00414010
add esp, 0x28
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00413fa0
lea ecx, [ebp - 0x38]
call fcn.00406240
lea ecx, [ebp - 0x44]
call fcn.00406240
lea ecx, [ebp - 0x48]
call fcn.00406240
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00406240
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x60]
cmp dword [eax - 0xc], 0
je 0x4ca3d9
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 4]
call fcn.00415120
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov ecx, edi
push esi
push eax
call fcn.00494dc0
push dword [eax]
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push dword [ebp - 0x60]
lea ecx, [edi + 0x1e4]
push eax
call fcn.0041f870
test eax, eax
lea ecx, [ebp - 0x40]
sete byte [ebp - 0x31]
call fcn.00406240
cmp byte [ebp - 0x31], 0
jne 0x4ca3d9
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xb8], esi
mov dword [edi + 0xbc], eax
mov edi, 1
jmp 0x4ca3e4
push 1
mov ecx, edi
call fcn.004aa920
xor edi, edi
mov edx, dword [ebp - 0x5c]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ca408
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4ca420
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00513512
mov esp, ebp
pop ebp
ret 0x10