Function at 0x4a78f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571bd8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a7b9d
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4a7b9d
cmp dword [ebp + 0x18], 0
je 0x4a7b9d
cmp dword [ebp + 0x10], 0
je 0x4a7979
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
call fcn.00421180
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4a7970
push 0x80004003
call fcn.0053c010
mov byte [ebp - 4], 0
call fcn.004729e0
push 0x5cc9fe
push 0x18
call fcn.0053dd33
mov ebx, eax
xor eax, eax
add esp, 8
cmp ebx, eax
je 0x4a7b85
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, 1
mov dword [ebx + 0x14], eax
lea edi, [ebx + 0x10]
mov dword [edi], 0x60
add dword [esi + 0x68], eax
mov ecx, dword [esi + 0x68]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push edx
lea ecx, [ebp - 0x20]
lea eax, [esi + 0x6c]
push ecx
push eax
call fcn.004a8e00
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx], edx
mov eax, dword [esi + 4]
push ecx
push edi
mov dword [ebx + 4], eax
call fcn.00476e70
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x18]
push edx
push eax
push edi
mov dword [ebp + 0xc], 0x60
call fcn.00476e70
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x14], ecx
xor ecx, ecx
add esp, 0xc
mov dword [ebx + 0xc], eax
mov byte [ebp + 0xf], 0
cmp dword [ebx + 8], ecx
je 0x4a7b0a
cmp eax, ecx
je 0x4a7b0a
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], cl
mov ecx, 0x5cc90c
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], edi
lea eax, [ebp + 0x10]
lea edi, [ebp - 0x30]
call fcn.00474680
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dl, byte [ebp + 0x20]
push eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0x58f2bc
lea edi, [ebp - 0x24]
mov byte [ebp - 0x28], dl
call fcn.004235e0
push ecx
mov edx, esp
mov dword [ebp + 0x20], esp
push edx
lea edi, [ebp - 0x34]
call fcn.004a7c00
mov eax, dword [ebp - 0x14]
push eax
lea esi, [ebp - 0x64]
call fcn.004aaa10
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
lea edi, [eax + 4]
push edx
mov dword [ebp - 0x4c], ecx
call fcn.004a7c00
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x20]
push ecx
add edx, 0x48
push edx
mov byte [ebp - 4], 4
call fcn.004a88c0
lea esi, [ebp - 0x4c]
call fcn.004a7c80
lea esi, [ebp - 0x64]
call fcn.004a7c80
push 0
push 0
push ebx
push 0x4a8090
push 0
push 0
call fcn.0053d041
add esp, 0x18
test eax, eax
je 0x4a7af5
push eax
mov byte [ebp + 0xf], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.004a7bd0
cmp byte [ebp + 0xf], 0
jne 0x4a7b58
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4a7b20
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 8], 0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x4a7b36
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0xc], 0
push ebx
call fcn.0053c152
add esp, 4
lea eax, [ebp - 0x14]
add esi, 0x6c
call fcn.004a8ef0
mov esi, dword [ebp + 8]
add esi, 0x48
lea eax, [ebp - 0x14]
call fcn.004a8cc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a7b6e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, byte [ebp + 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
je 0x4a7bb3
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
jmp 0x4a7bb3
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a7bb3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c