Function at 0x4305f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5638
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43089b
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x43089b
cmp dword [ebp + 0x18], ebx
je 0x43089b
cmp dword [ebp + 0x10], ebx
je 0x430674
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push ecx
call fcn.00409230
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
jne 0x43066c
push 0x80004003
call fcn.004a91a0
mov byte [ebp - 4], bl
call fcn.0041ba00
push 0x4e2d14
push 0x18
call fcn.0048c58e
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x430883
mov eax, 1
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], 0x60
add dword [esi + 0x68], eax
mov ecx, dword [esi + 0x68]
lea edx, [ebp - 0x14]
lea eax, [esi + 0x6c]
push edx
push eax
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
call fcn.00431a70
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], eax
lea eax, [edi + 0x10]
push eax
push ecx
push esi
call fcn.0042e4d0
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x18]
push edx
push eax
push esi
mov dword [ebp + 0xc], 0x60
call fcn.0042e4d0
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 0x14], ecx
xor ecx, ecx
add esp, 0xc
mov dword [edi + 0xc], eax
mov byte [ebp + 0xf], 0
cmp dword [edi + 8], ecx
je 0x430808
cmp eax, ecx
je 0x430808
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], cl
mov ecx, 0x4e3954
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [ebp + 0x10]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x3c], esi
call fcn.00423ac0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov dl, byte [ebp + 0x20]
push eax
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0x4c0b84
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x30], dl
call fcn.00406770
push ecx
mov edx, esp
mov dword [ebp + 0x20], esp
push edx
lea ecx, [ebp - 0x3c]
call fcn.00430900
push ebx
lea esi, [ebp - 0x6c]
call fcn.004336b0
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x54], ecx
lea ecx, [eax + 4]
push edx
call fcn.00430900
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
add ecx, 0x48
push ecx
lea ebx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00431530
lea esi, [ebp - 0x54]
call fcn.00430980
lea esi, [ebp - 0x6c]
call fcn.00430980
mov edx, dword [ebp - 0x18]
push 0
push 0
push edx
push 0x430d90
push 0
push 0
call fcn.0048d484
add esp, 0x18
test eax, eax
je 0x4307f3
push eax
mov byte [ebp + 0xf], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004308d0
cmp byte [ebp + 0xf], 0
jne 0x430856
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x43081e
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 8], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x430834
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0xc], 0
push edi
call fcn.00480ff0
mov esi, dword [ebp - 0x1c]
add esp, 4
lea eax, [ebp - 0x14]
call fcn.00431b60
mov esi, dword [ebp + 8]
add esi, 0x48
lea eax, [ebp - 0x14]
call fcn.00431930
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43086c
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 eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4308b1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4308b1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4308b1
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