Function at 0x410530
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4914c6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4bda58]
test eax, eax
jne 0x41059b
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040d140
mov dword [ebp - 4], 0xffffffff
mov dword [0x4bda58], eax
mov esi, dword [ebx + 8]
push esi
push str.SetupUpdatePackage__s_
push str.Update
push eax
call fcn.0040d770
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4105b7
sub ecx, edx
sar ecx, 1
je 0x410771
mov esi, dword [ebx + 0xc]
cmp dword [esi], 0
sete al
test al, al
jne 0x410771
call fcn.00403f70
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4105f9
push 0x80004005
call fcn.00404990
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041eae0
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x14]
push str._Update__S__D__s_
push eax
call fcn.00411c10
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410651
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x34]
cmp dword [eax - 0xc], 0
jle 0x410668
lea eax, [ecx + 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409070
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0046ce30
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x78], 0x44
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41070c
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x28]
call edi
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.0041eae0
push 1
push eax
mov eax, dword [ebx + 0xc]
mov byte [ebp - 4], 3
push dword [eax]
call fcn.0040fd50
mov ecx, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x18], ecx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41074e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x18]
jmp 0x41074e
mov eax, dword [0x4bda58]
test eax, eax
jne 0x410736
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040d140
mov byte [ebp - 4], 1
mov dword [0x4bda58], eax
push str.Create_Package_Process_Failed_
push str.Update
push eax
call fcn.0040d770
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41076d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x18]
mov eax, ecx
jmp 0x410773
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8