Function at 0x481940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1628
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor eax, eax
mov dword [0x4c74e8], eax
cmp byte [0x4cfcdb], al
je 0x481994
mov eax, 2
mov dword [0x4c74e8], eax
cmp byte [0x4cfcda], 0
je 0x4819a5
or eax, 4
mov dword [0x4c74e8], eax
mov ecx, eax
shr eax, 2
and al, 1
shr ecx, 1
mov bl, al
mov eax, 1
add dword [0x4cfcfc], eax
lea edx, [esp + 0x20]
and cl, 1
push edx
mov byte [esp + 0x1b], cl
mov dword [0x4c74f4], eax
call fcn.0041bb70
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x8c], 0
call fcn.0041bb70
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x8c], 1
call fcn.0041bb70
mov byte [esp + 0x88], 2
mov edx, dword [0x4d0198]
push edx
push str._s_bch_plus.exe
lea edi, [esp + 0x24]
call fcn.00417b50
mov eax, dword [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0x58]
add esp, 8
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
mov ecx, esi
call eax
test al, al
je 0x481b44
mov esi, 1
add dword [0x4cfcfc], esi
cmp byte [0x4cfd01], 0
je 0x481a4e
call fcn.00484e40
mov ecx, str._H_true
test bl, bl
jne 0x481a5c
mov ecx, 0x4a970c
cmp byte [esp + 0x17], 0
mov eax, str._S_true
jne 0x481a6d
mov eax, 0x4a970c
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push str.__s___s__s
lea edi, [esp + 0x28]
call fcn.00417b50
push 0x44
lea edx, [esp + 0x48]
push 0
push edx
call fcn.0048a470
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
add esp, 0x1c
mov dword [esp + 0x34], 0x44
cmp dword [eax - 4], esi
jle 0x481ac6
mov eax, dword [eax - 0xc]
push eax
mov ecx, edi
push ecx
call fcn.00416ed0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x481b0d
mov edx, dword [esp + 0x24]
push 0xea60
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004883c5
add esp, 8
test eax, eax
js 0x481b3a
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x481b3a
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x481b5c
push 0x80070057
call fcn.004170a0
cmp byte [0x4cfd01], 0
mov dword [0x4c74f4], 0
je 0x481b5c
call fcn.00484e40
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x481b84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481bd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret