Function at 0x4022d0
Capabilities:
Accept command line arguments
Create process on windows
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x553d3a
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x5bd1b0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
push edi
mov eax, dword [0x5bd1b0]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 8
push eax
mov dword [esp + 0x28], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00411e43
push 0
call fcn.0041361c
add esp, 4
mov ecx, esi
push str.Local_AppWizard_Generated_Applications
call fcn.0041481f
call fcn.004128fa
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402365
push 0x80004005
call fcn.00403120
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x2a0], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x1c]
push 0x599ef4
push eax
call fcn.004030e0
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x4023c3
add esi, 0xfffffff0
mov dword [esp + 0x2a0], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x402693
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004029e0
push 0x59a000
push dword [eax]
call fcn.005374e2
add esp, 8
mov byte [esp + 0x2a0], 0
mov edx, dword [esp + 0x10]
test eax, eax
sete byte [esp + 0xf]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402411
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x4024a3
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0x70], ax
mov word [esp + 0x82], ax
lea eax, [esp + 0x70]
push eax
push ecx
movdqu xmmword [esp + 0x7a], xmm0
call fcn.00401f50
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x64]
push 0
push 0
push 0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x84]
mov byte [esp + 0x78], 0
push eax
push 0
xorps xmm0, xmm0
mov byte [esp + 0x89], 0
push 1
movq qword [esp + 0x85], xmm0
call esi
push 0
push 0
push eax
lea eax, [esp + 0x70]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x84]
push eax
push 0
push 1
call esi
movsx eax, byte [esp + 0x64]
push eax
mov byte [esp + 0x69], 0
call fcn.00537b51
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004029e0
push 0x59a008
push dword [eax]
call fcn.005374e2
add esp, 8
mov byte [esp + 0x2a0], 0
mov edx, dword [esp + 0x10]
test eax, eax
mov ecx, edi
sete byte [esp + 0xf]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x4026c2
call fcn.004128fa
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402515
push 0x80004005
call fcn.00403120
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2a0], 3
call fcn.004128fa
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402549
push 0x80004005
call fcn.00403120
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x2a0], 4
cmp dword [esi - 0xc], 2
jge 0x402571
push 0x80070057
call fcn.00403120
movzx eax, word [esi + 4]
push eax
lea eax, [esp + 0x18]
push 0x59a010
push eax
call fcn.004030e0
mov eax, dword [esi - 0xc]
lea ecx, [esp + 0x24]
add esp, 0xc
add eax, 0xfffffffd
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402960
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 5
call fcn.00402bb0
mov byte [esp + 0x2a0], 4
mov ecx, edi
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4025d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push eax
call fcn.00538670
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.00537b65
add esp, 4
push eax
push str.DeviceSafeUdiskSafeUdisk_u
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.00401ce0
add esp, 0x10
lea eax, [esp + 0x84]
push eax
push dword [esp + 0x18]
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
lea edx, [edi - 0x10]
mov byte [esp + 0x2a0], 3
or edi, 0xffffffff
test eax, eax
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402656
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x2a0], 0
mov ecx, edi
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40267b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x2a0], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40269d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x284]
xor ecx, esp
call fcn.00536d2d
mov esp, ebp
pop ebp
ret
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004029e0
push 0x59a054
push dword [eax]
call fcn.005374e2
add esp, 8
mov byte [esp + 0x2a0], 0
mov edx, dword [esp + 0x10]
test eax, eax
mov ecx, edi
sete byte [esp + 0xf]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40270d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x4027d5
lea ecx, [esp + 0x14]
call fcn.00403190
lea ecx, [esp + 0x1c]
call fcn.00403190
mov byte [esp + 0x2a0], 8
cmp dword [esi - 0xc], 2
jge 0x402742
push 0x80070057
call fcn.00403120
movzx eax, word [esi + 4]
push eax
lea eax, [esp + 0x18]
push 0x59a010
push eax
call fcn.004030e0
add esp, 0xc
push 0
push dword [esp + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
jne 0x4027be
lea ecx, [esp + 0x10]
call fcn.00403190
mov byte [esp + 0x2a0], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.DDD_REMOVE_DEFINITION_d_
push eax
call fcn.004030e0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00403100
lea ecx, [esp + 0x1c]
call fcn.00403100
lea ecx, [esp + 0x14]
call fcn.00403100
lea ecx, [esp + 0x18]
call fcn.00403100
jmp 0x40269d
lea ecx, [esp + 0x1c]
call fcn.00403100
lea ecx, [esp + 0x14]
call fcn.00403100
jmp 0x40267b
push 2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004029e0
push 0x59a090
push dword [eax]
call fcn.005374e2
add esp, 8
mov byte [esp + 0x2a0], 0
mov edx, dword [esp + 0x10]
test eax, eax
mov ecx, edi
sete byte [esp + 0xf]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402820
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0xf], 0
je 0x40267b
lea ecx, [esp + 0x10]
call fcn.00401d60
lea ecx, [esp + 0x1c]
call fcn.00403190
lea ecx, [esp + 0x14]
call fcn.00403190
mov byte [esp + 0x2a0], 0xd
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jge 0x402862
push 0x80070057
call fcn.00403120
movzx eax, word [eax]
push eax
lea eax, [esp + 0x18]
push str._C:_
push eax
call fcn.004030e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [eax - 0xc], 0
jge 0x40288c
push 0x80070057
call fcn.00403120
movzx eax, word [eax]
push eax
lea eax, [esp + 0x20]
push str._C:SecurityUDiskAssist.exe
push eax
call fcn.004030e0
mov esi, dword [esp + 0x28]
add esp, 0xc
mov ecx, esi
call fcn.00401e70
test eax, eax
je 0x40292d
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00538670
mov eax, dword [esp + 0x20]
mov ecx, 1
mov dword [esp + 0x34], 0x3c
add esp, 0xc
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], str.open
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], str.Shell
sub ecx, dword [eax - 4]
or ecx, dword [eax - 8]
jge 0x40290e
push 0
lea ecx, [esp + 0x18]
call fcn.00402f80
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x48], 5
mov dword [esp + 0x4c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
call fcn.00403100
lea ecx, [esp + 0x1c]
call fcn.00403100
lea ecx, [esp + 0x10]
call fcn.00403100
lea ecx, [esp + 0x18]
call fcn.00403100
jmp 0x40269d