Function at 0x40afa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538db1
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x10]
push 0xc
call fcn.0041652a
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40b00b
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x40b00d
cmp edi, ebx
je 0x40b00d
push 0x8007000e
call fcn.0052c920
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x40b025
push 0x8007000e
call fcn.0052c920
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], ebx
cmp cx, word [edi + 6]
jae 0x40b1e8
mov edi, edi
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
cmp dword [edx + eax*4], ebx
lea eax, [edx + eax*4]
je 0x40b1e5
mov edi, dword [eax]
push 0xc
call fcn.0041652a
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x40b08f
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
jne 0x40b08a
cmp edi, ebx
jne 0x40b001
mov dword [ebp - 0x14], esi
jmp 0x40b094
mov dword [ebp - 0x14], ebx
mov esi, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], esi
cmp esi, ebx
je 0x40b001
push 0xc
mov byte [ebp - 4], 3
call fcn.0041652a
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 4
cmp edi, ebx
je 0x40b0e1
push 0x567684
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
cmp eax, ebx
je 0x40b001
mov esi, edi
jmp 0x40b0e3
xor esi, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x40b001
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.0040b330
push eax
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0040b490
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x40b15c
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x40b159
cmp edi, ebx
je 0x40b159
mov eax, dword [edi]
cmp eax, ebx
je 0x40b140
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40b150
push eax
call fcn.00416559
add esp, 4
push edi
call fcn.00416559
add esp, 4
mov dword [ebp - 0x1c], ebx
lea ecx, [esi + 8]
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ecx
call edi
cmp eax, ebx
jne 0x40b196
mov eax, dword [esi]
cmp eax, ebx
je 0x40b17d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40b18d
push eax
call fcn.00416559
add esp, 4
push esi
call fcn.00416559
add esp, 4
mov esi, dword [ebp - 0x14]
lea edx, [esi + 8]
push edx
mov byte [ebp - 4], 1
call edi
cmp eax, ebx
jne 0x40b1cd
mov eax, dword [esi]
cmp eax, ebx
je 0x40b1b4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40b1c4
push eax
call fcn.00416559
add esp, 4
push esi
call fcn.00416559
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
movzx edx, word [ecx + 6]
inc eax
mov dword [ebp - 0x18], eax
mov edi, ecx
cmp eax, edx
jl 0x40b040
mov esi, dword [ebp - 0x20]
push 0x44
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.005168b0
xor eax, eax
add esp, 0xc
test byte [edi + 4], 4
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
je 0x40b22b
xor ecx, ecx
mov word [ebp - 0x54], cx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x58], 3
cmp esi, ebx
je 0x40b233
mov eax, dword [esi]
jmp 0x40b235
xor eax, eax
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b2cc
test byte [edi + 4], 2
je 0x40b265
mov edx, dword [ebp - 0x38]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x34]
push ecx
call edi
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40b2b6
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40b2b6
mov eax, dword [esi]
cmp eax, ebx
je 0x40b29d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40b2ad
push eax
call fcn.00416559
add esp, 4
push esi
call fcn.00416559
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40b313
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40b313
mov eax, dword [esi]
cmp eax, ebx
je 0x40b2fa
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40b30a
push eax
call fcn.00416559
add esp, 4
push esi
call fcn.00416559
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4