Function at 0x4222e0
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49b0db
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4ce4e0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
cmp edi, dword [ebp + 0x10]
je 0x42266f
xor ebx, ebx
mov eax, dword [edi + 8]
mov eax, dword [eax]
add edi, 8
push str.install
push eax
call fcn.0047499c
add esp, 8
cmp eax, ebx
jne 0x42257f
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
je 0x42257f
mov eax, 7
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], cx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], dx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0xbb8
mov dword [esp + 0x70], 0xa8c0
mov dword [esp + 0x74], 0x194
mov dword [esp + 0x78], 0xffffffff
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0xa0], ebx
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
sub eax, 0x10
push eax
call fcn.00401530
add eax, 0x10
add esp, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 1
call fcn.0043c8e0
add esp, 4
mov byte [esp + 0xa0], 2
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov byte [esp + 0x84], bl
lea edx, [ecx + 2]
jmp 0x422410
mov si, word [ecx]
add ecx, 2
cmp si, bx
jne 0x422410
sub ecx, edx
sar ecx, 1
push ecx
lea esi, [esp + 0x4c]
call fcn.0040cf10
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
lea ecx, [esp + 0x34]
call fcn.0046fa20
test al, al
je 0x422517
lea ecx, [esp + 0x2c]
call fcn.0046f5f0
test al, al
jne 0x42245d
mov byte [esp + 0x84], bl
jmp 0x422517
lea esi, [esp + 0x2c]
call fcn.0046f830
test al, al
jne 0x422476
mov byte [esp + 0x84], bl
jmp 0x422517
mov eax, dword [ebp + 0x18]
mov byte [esp + 0x84], 1
mov esi, dword [eax]
mov edx, dword [esi + 4]
push edx
push esi
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004218d0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov edx, 0x1ffffffe
sub edx, ecx
cmp edx, 1
jb 0x4226b0
mov edx, dword [esp + 0x18]
inc ecx
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
push ebx
mov dword [ecx], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x422517
mov ecx, edi
call fcn.004205b0
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov ecx, dword [esi + 4]
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004218d0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov edi, 0x1ffffffe
sub edi, ecx
cmp edi, 1
jb 0x4226b0
inc ecx
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [esp + 0xa0], 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 0x42253f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x2c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0046f580
jmp 0x42265a
mov ecx, dword [edi]
mov eax, dword [ecx]
push 0x4ad6c4
push eax
call fcn.0047499c
add esp, 8
test eax, eax
jne 0x42265a
mov edx, dword [ebp + 0x24]
cmp byte [edx], bl
je 0x42265a
mov esi, dword [edi]
add esi, 0x28
push esi
mov byte [esp + 0x27], bl
mov byte [esp + 0x1a], bl
call fcn.0043cd50
test al, al
je 0x4225c0
mov byte [esp + 0x16], 1
push esi
mov byte [esp + 0x1b], bl
call fcn.0043d100
test al, al
je 0x4225d3
mov byte [esp + 0x17], 1
mov ecx, esi
call fcn.0043ce90
test al, al
jne 0x4225ea
cmp byte [esp + 0x17], bl
jne 0x4225ea
cmp byte [esp + 0x16], bl
je 0x42265a
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004218d0
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
mov edx, 0x1ffffffe
sub edx, ecx
cmp edx, 1
jb 0x4226b0
mov edx, dword [esp + 0x18]
inc ecx
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov edx, dword [esi + 4]
push edx
push esi
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004218d0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 4]
mov edi, 0x1ffffffe
sub edi, ecx
cmp edi, 1
jb 0x4226b0
inc ecx
mov dword [edx + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov edi, dword [edx]
mov dword [ebp + 0xc], edi
cmp edi, dword [ebp + 0x10]
jne 0x422335
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
push 0x4ad1e0
call fcn.004728b9
int3