Function at 0x41d5a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccbb5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x513b94]
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 esi, dword [ebp + 8]
push 0
push 0
push 0x1042
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d68b
cmp dword [ebp + 0xc], 0
jle 0x41d602
mov ecx, 0x5181b8
xor edi, edi
call fcn.0042aa90
sub eax, edi
jmp 0x41d611
mov ecx, 0x5181b8
call fcn.0042aa90
lea edi, [eax - 1]
mov eax, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4de374
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
call fcn.0049c580
push eax
push 0x4de374
call fcn.0049c710
mov ebx, dword [sym.imp.USER32.dll_GetParent]
add esp, 0xc
cmp dword [ebp - 0x54], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
je 0x41d718
test esi, esi
je 0x41d6a9
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
jmp 0x41d6c2
mov eax, dword [ebp + 0xc]
add edi, eax
test eax, eax
jle 0x41d60f
mov ecx, 0x5181b8
call fcn.0042aa90
sub eax, edi
jmp 0x41d611
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x38], eax
call esi
mov esi, dword [ebp - 0x24]
cdq
sub eax, edx
push 2
sar eax, 1
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x41d6fc
nop
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x41d6fc
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x41d6e0
lea eax, [ebp - 0x58]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0x41d9d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], eax
mov ecx, 0x5181b8
mov dword [ebp - 4], 0
call fcn.0042aa90
cmp edi, eax
jae 0x41d7b0
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x5c], 0x5181b8
nop
push 0x5181b8
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x5181b8
call fcn.0041d870
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41d76d
mov bl, byte [eax + 0xa]
and bl, 1
lea ecx, [ebp - 0x70]
call fcn.004231e0
push 0x5181b8
mov byte [ebp - 4], 0
call esi
test bl, bl
jne 0x41d84e
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
jne 0x41d7b0
mov ecx, 0x5181b8
call fcn.0042aa90
inc dword [ebp - 0x50]
mov ecx, 0x5181b8
add edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
call fcn.0042aa90
cmp edi, eax
jb 0x41d740
xor bl, bl
cmp dword [ebp - 0x54], 0
je 0x41d81d
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x41d7d0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41d7c5
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41d81d
mov edi, dword [sym.imp.USER32.dll_GetParent]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x41d81d
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x41d801
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x41d830
call fcn.0049c750
mov al, bl
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.004a0e13
mov esp, ebp
pop ebp
ret
push 1
push edi
push dword [ebp - 0x24]
call fcn.00464b50
add esp, 0xc
mov bl, 1
jmp 0x41d7b2