Function at 0x49b170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d494d
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, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 0xc]
push 0x414
push dword [esi + 4]
mov dword [ebp - 0x2c], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00471710
add esp, 4
mov ebx, eax
mov ecx, ebx
mov dword [ebp - 0x28], ebx
push dword [edi + 0x10]
call fcn.00471c20
test al, 0x20
jne 0x49b43b
push dword [edi + 0x10]
mov ecx, ebx
call fcn.00471aa0
mov esi, dword [esi + 4]
mov dword [ebp - 0x64], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x21], 0
mov eax, dword [eax + 8]
inc eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4f11e0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
call fcn.0049c580
push eax
push 0x4f11e0
call fcn.0049c710
mov edi, dword [sym.imp.USER32.dll_GetParent]
add esp, 0xc
cmp dword [ebp - 0x60], 0
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x21]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
je 0x49b2dc
test esi, esi
je 0x49b272
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 - 0x44], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
jmp 0x49b28b
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x44], eax
call esi
mov esi, dword [ebp - 0x64]
cdq
sub eax, edx
push 2
sar eax, 1
push esi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x49b2c0
call ebx
cmp esi, eax
je 0x49b2c0
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x49b2a8
lea eax, [ebp - 0x70]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
push 0x41d9d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x68]
inc dword [ebp - 0x5c]
mov dword [ebp - 4], 0
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x49b371
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
add ecx, 0x70
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
push ecx
lea eax, [esi + 0x10]
push eax
push dword [ebx + 0x10]
push edi
call fcn.0049aa30
inc dword [ebp - 0x5c]
add esp, 0x10
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x49b344
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x49b340
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x49b340
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x49b330
mov esi, eax
jmp 0x49b35c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x49b35c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x49b350
cmp byte [esi + 0xd], 0
mov ecx, dword [ebp - 0x30]
je 0x49b303
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp byte [ebp - 0x21], 0
je 0x49b389
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push 0
push dword [eax + 0x10]
call fcn.004715a0
jmp 0x49b3c0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.00471ec0
test eax, eax
jns 0x49b39f
xor eax, eax
jmp 0x49b3a6
mov eax, dword [eax*4 + 0x4f11a0]
push 0
push dword [ebp - 0x6c]
mov ecx, esi
push 0
push eax
mov eax, dword [ebp - 0x2c]
push 0x49a5f0
push dword [eax + 0x10]
call fcn.00474f30
cmp dword [ebp - 0x60], 0
je 0x49b428
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x49b3de
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x49b3d3
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x49b428
nop dword [eax]
call ebx
cmp esi, eax
je 0x49b428
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x49b410
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x49b43b
call fcn.0049c750
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.004a0e13
mov esp, ebp
pop ebp
ret 0xc