Function at 0x47b2d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a36f3
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
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 0x47b57d
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x47b57d
cmp dword [ebp + 0x18], 0
je 0x47b57d
cmp dword [ebp + 0x10], 0
je 0x47b359
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push ecx
call fcn.0040e870
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x47b350
push 0x80004003
call fcn.00441d80
mov byte [ebp - 4], 0
call fcn.00419eb0
push 0x4e777e
push 0x18
call fcn.00446d93
mov ebx, eax
xor eax, eax
add esp, 8
cmp ebx, eax
je 0x47b565
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.00421560
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.0047b110
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.0047b110
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 0x47b4ea
cmp eax, ecx
je 0x47b4ea
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 0x28], cl
mov ecx, 0x4e768c
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.00418320
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 str._d:_s__s
lea edi, [ebp - 0x24]
mov byte [ebp - 0x28], dl
call fcn.00410c60
push ecx
mov edx, esp
mov dword [ebp + 0x20], esp
push edx
lea edi, [ebp - 0x34]
call fcn.004209c0
mov eax, dword [ebp - 0x14]
push eax
lea esi, [ebp - 0x64]
call fcn.00422a20
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.004209c0
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.00421020
lea esi, [ebp - 0x4c]
call fcn.00420a40
lea esi, [ebp - 0x64]
call fcn.00420a40
push 0
push 0
push ebx
push 0x47a9d0
push 0
push 0
call fcn.0044612f
add esp, 0x18
test eax, eax
je 0x47b4d5
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.00420990
cmp byte [ebp + 0xf], 0
jne 0x47b538
mov esi, dword [ebp + 8]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x47b500
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 0x47b516
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0xc], 0
push ebx
call fcn.0044556f
add esp, 4
lea eax, [ebp - 0x14]
add esi, 0x6c
call fcn.00421650
mov esi, dword [ebp + 8]
add esi, 0x48
lea eax, [ebp - 0x14]
call fcn.00421420
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47b54e
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 0x47b593
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
jmp 0x47b593
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47b593
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