Function at 0x4a12e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da4fd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0xb0]
push dword [ebx + 0x10]
call fcn.004775b0
test al, 0x20
jne 0x4a1593
push dword [ebx + 0x10]
mov ecx, dword [edi + 0xb0]
call fcn.00477420
push 0x30
push 0
mov esi, dword [eax + 4]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x11], 0
call fcn.004aa220
mov eax, dword [esi + 8]
add esp, 0xc
mov esi, dword [edi + 4]
inc eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4f80f8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
call fcn.004a27e0
push eax
push 0x4f80f8
call fcn.004a29e0
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp dword [ebp - 0x44], 0
lea eax, [ebp - 0x11]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
je 0x4a143e
test esi, esi
je 0x4a13c9
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x58]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x54]
jmp 0x4a13e1
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
push 2
sar eax, 1
push esi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4a1422
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4a1422
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x4a1402
lea eax, [ebp - 0x5c]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
push 0x419a50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x60]
inc dword [ebp - 0x40]
mov dword [ebp - 4], 0
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x4a14c5
lea ecx, [edi + 0x78]
nop dword [eax]
push ecx
lea eax, [esi + 0x10]
push eax
push dword [ebx + 0x10]
push dword [edi + 0xb0]
call fcn.004a0f40
inc dword [ebp - 0x40]
add esp, 0x10
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4a14a4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a14a0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x4a14a0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a1490
mov esi, eax
jmp 0x4a14bc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4a14bc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a14b0
cmp byte [esi + 0xd], 0
lea ecx, [edi + 0x78]
je 0x4a1460
cmp byte [ebp - 0x11], 0
mov ecx, dword [edi + 0xb0]
je 0x4a14dd
push 0
push dword [ebx + 0x10]
call fcn.00476ef0
jmp 0x4a1513
lea eax, [ebp - 0x48]
push eax
call fcn.00477850
test eax, eax
jns 0x4a14ee
xor eax, eax
jmp 0x4a14f8
lfence
mov eax, dword [eax*4 + 0x4f80b8]
mov ecx, dword [edi + 0xb0]
push 0
push dword [ebp - 0x48]
push 0
push eax
push 0x4a0b00
push dword [ebx + 0x10]
call fcn.0047a9e0
cmp dword [ebp - 0x44], 0
je 0x4a1580
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4a152f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4a1520
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4a1580
nop word [eax + eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4a1580
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
test esi, esi
jne 0x4a1560
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x4a1593
call fcn.004a2a20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0xc