Function at 0x405050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c9b3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x219c
call fcn.004292a0
mov eax, dword [0x44e6d0]
xor eax, esp
mov dword [esp + 0x2198], eax
push ebx
push esi
push edi
mov eax, dword [0x44e6d0]
xor eax, esp
push eax
lea eax, [esp + 0x21b0]
mov dword fs:[0], eax
push 0x44
xor ebx, ebx
lea eax, [esp + 0x38]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x28], esi
call fcn.00426140
add esp, 0xc
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], ebx
call fcn.004094eb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4050d3
push 0x80004005
call fcn.00401760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x21bc], ebx
call fcn.004019f0
mov byte [esp + 0x21b8], 1
mov edx, dword [0x45decc]
mov dword [esp + 0xf8], 1
mov eax, dword [edx - 0xc]
cmp eax, ebx
jne 0x4051a5
cmp word [0x45ac98], bx
je 0x405151
mov eax, 0x45ac98
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405130
sub eax, edx
sar eax, 1
push eax
push 0x45ac98
mov ecx, 0x45decc
call fcn.004017b0
jmp 0x4051a5
lea eax, [esp + 0x14]
push eax
mov edi, 0x307
call fcn.00402390
add esp, 4
push eax
mov ecx, 0x45decc
mov byte [esp + 0x21bc], 2
call fcn.00407160
mov byte [esp + 0x21b8], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40519e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0xf8], ebx
push 0x45decc
lea ecx, [esp + 0xf4]
call fcn.00407160
mov eax, 0x45bc98
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4051c0
sub eax, edx
sar eax, 1
push eax
push 0x45bc98
lea ecx, [esp + 0xfc]
call fcn.004017b0
cmp dword [0x45cc98], ebx
jne 0x4051fb
lea ecx, [esp + 0x7c]
call fcn.00408e03
cmp eax, 1
jne 0x4055f5
cmp dword [0x459a94], ebx
je 0x405463
mov dx, word [0x459b00]
cmp dx, bx
je 0x405463
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x4446b4]
mov word [esp + eax + 0x1a4], cx
add eax, 2
cmp cx, bx
jne 0x405220
cmp dx, 0x5c
je 0x4052b5
mov eax, 0x459b00
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405244
lea edi, [esp + 0x1a4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405260
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x405260
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x1a4]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x405286
mov ecx, dword [str.ADMIN_]
mov edx, dword [0x4446c0]
mov dword [eax], ecx
mov ecx, dword [0x4446c4]
mov dword [eax + 4], edx
mov edx, dword [0x4446c8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xf0]
push eax
mov ecx, 0x45decc
call fcn.00407160
mov edx, dword [esp + 0xf4]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
dec eax
or eax, ecx
jge 0x4052f3
push 1
lea ecx, [esp + 0xf8]
call fcn.004016b0
mov edx, dword [esp + 0xf4]
mov esi, edx
mov edx, dword [esp + 0xf0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
dec eax
or eax, ecx
jge 0x405321
push 1
lea ecx, [esp + 0xf4]
call fcn.004016b0
mov edx, dword [esp + 0xf0]
push esi
lea ecx, [esp + 0x1a8]
call fcn.00402820
add esp, 4
test eax, eax
je 0x405343
mov ecx, dword [esp + 0x1c]
call fcn.00404c00
jmp 0x4055f5
cmp dword [0x459a94], ebx
je 0x4053c3
cmp word [0x459b00], bx
je 0x4053c3
mov ecx, dword [0x45decc]
push 0x4446cc
push ecx
call fcn.00425e46
add esp, 8
test eax, eax
jne 0x4053c3
push 0x459b00
lea ecx, [esp + 0x24]
call fcn.004018d0
push 0x443f70
lea ecx, [esp + 0x24]
call fcn.00406ad0
push 0x45decc
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00406cc0
add esp, 0xc
push eax
mov ecx, 0x45decc
mov byte [esp + 0x21bc], 3
call fcn.004071d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x21b8], 1
call fcn.004012a0
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x93
call fcn.00402390
add esp, 4
mov esi, eax
lea edx, [esp + 0x14]
mov bl, 4
push edx
mov edi, 0x308
mov byte [esp + 0x21bc], bl
call fcn.00402390
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x21b8], 5
mov esi, dword [esi]
mov eax, dword [eax]
push 0
push esi
push eax
call fcn.0040b057
mov byte [esp + 0x21b8], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x21b8], 1
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 0x4055f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4055f5
lea ecx, [esp + 0xf0]
push ecx
mov ecx, 0x45decc
call fcn.00407160
lea edx, [esp + 0x1a4]
push edx
call fcn.00405af0
xor eax, eax
jmp 0x405490
movzx ecx, word [eax + 0x454a88]
mov word [esp + eax + 0x11a4], cx
add eax, 2
cmp cx, bx
jne 0x405490
cmp word [0x459c90], bx
je 0x4054ce
push 0x459c90
push str.128___s_
lea edx, [esp + 0x1ac]
call fcn.00402350
add esp, 8
jmp 0x40558c
cmp dword [0x459a94], ebx
je 0x405519
cmp word [0x459b00], bx
je 0x405519
push 0x459b00
push str.__s
lea edx, [esp + 0x1ac]
call fcn.00402350
add esp, 8
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x453a88]
mov word [esp + eax + 0x11a4], cx
add eax, 2
cmp cx, bx
jne 0x405500
jmp 0x40558c
cmp word [0x45cca0], bx
je 0x40558c
lea edi, [esp + 0x1a4]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x405530
mov eax, dword [0x444600]
mov dword [edi], eax
mov eax, 0x45cca0
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405550
lea edi, [esp + 0x1a4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x405570
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x405570
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xfc]
push ebx
push ebx
push 0x20
lea eax, [esp + 0x1b8]
push eax
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0x11bc]
push ecx
push ebx
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x405655
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push ebx
push 2
mov dword [0x45dcac], edx
mov edx, dword [ecx + 0x20]
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x21b8], 0
call fcn.00401ad0
mov dword [esp + 0x21b8], 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 0x405631
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2198]
xor ecx, esp
call fcn.00425324
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x52e
jne 0x4056e9
lea eax, [esp + 0x14]
push eax
mov edi, 0x93
call fcn.00402390
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
mov bl, 6
push ecx
mov edi, 0x309
mov byte [esp + 0x21bc], bl
call fcn.00402390
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x21b8], 7
mov esi, dword [esi]
mov eax, dword [eax]
push pe_nt_image_headers32
push esi
push eax
call fcn.0040b057
mov byte [esp + 0x21b8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4056d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x21b8], 1
mov eax, dword [esp + 0x14]
jmp 0x40543e
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x306
call fcn.00402390
mov eax, dword [eax]
add esp, 4
push esi
push eax
lea edx, [esp + 0x11ac]
call fcn.00402350
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40572e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x93
call fcn.00402390
add esp, 4
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x21b8], 8
mov eax, dword [eax]
push pe_nt_image_headers32
push eax
lea edx, [esp + 0x11ac]
push edx
call fcn.0040b057
jmp 0x405432