Function at 0x402860
Capabilities:
Accept command line arguments
Check mutex on windows
Copy file
Create process on windows
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5f8
mov eax, dword [0x4a237c]
xor eax, esp
mov dword [esp + 0x5f4], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x10], 0xa231b3bc
mov edi, dword [eax]
mov dword [esp + 0x14], 0x5e7a81fb
mov dword [esp + 0x18], 0xe33dae8d
mov dword [esp + 0xc], edi
mov eax, dword [edi + 0x12c]
test al, 1
jne 0x4028f5
xorps xmm0, xmm0
mov byte [edi + 0x1a0], 1
or eax, 1
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x12c], eax
nop dword [eax + eax]
mov al, byte [esp + ecx + 0x10]
mov byte [ecx + edi + 0x194], al
add ecx, 1
adc edx, 0
jne 0x4028e8
cmp ecx, 0xc
jb 0x4028d0
push 0x47fb80
call fcn.0045a847
add esp, 4
cmp byte [edi + 0x1a0], 0
lea eax, [edi + 0x194]
mov dword [esp + 0x20], eax
je 0x402956
mov edi, dword [esp + 0x20]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 8], eax
mov ecx, esi
mov eax, 0xe345cbf9
and ecx, 7
mov edx, 0x2b37f18b
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 8], 0
jne 0x40294a
cmp esi, 0xc
jb 0x402921
mov eax, dword [esp + 0x20]
mov byte [edi + 0xc], 0
mov edi, dword [esp + 0xc]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x4031ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4031ef
mov esi, 0x3b
nop
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x402980
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x20], 1
jle 0x4029c8
call fcn.00401f10
pop edi
pop esi
mov ecx, dword [esp + 0x5f4]
xor ecx, esp
call fcn.0045a753
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0x2e4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2e0]
push 0x5c
push eax
call fcn.0045c210
add esp, 8
test eax, eax
je 0x4029f7
mov byte [eax + 1], 0
movaps xmm0, xmmword [0x49e070]
mov eax, dword [edi + 0x134]
mov dword [esp + 0x38], 0x12171e12
mov dword [esp + 0x3c], 0x5636fa73
mov word [esp + 0x40], 0x31e
mov byte [esp + 0x42], 0x79
movups xmmword [esp + 0x28], xmm0
test al, 1
jne 0x402a75
xorps xmm0, xmm0
mov byte [edi + 0x167], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x134], eax
nop word [eax + eax]
mov al, byte [esp + ecx + 0x28]
mov byte [ecx + edi + 0x14c], al
add ecx, 1
adc edx, 0
jne 0x402a68
cmp ecx, 0x1b
jb 0x402a50
push 0x47fb40
call fcn.0045a847
add esp, 4
cmp byte [edi + 0x167], 0
lea eax, [edi + 0x14c]
mov dword [esp + 8], eax
je 0x402ad6
mov edi, dword [esp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x5179717b
and ecx, 7
mov edx, 0x3d559f1b
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402aca
cmp esi, 0x1b
jb 0x402aa1
mov eax, dword [esp + 8]
mov byte [edi + 0x1b], 0
mov edi, dword [esp + 0xc]
push 0x104
lea ecx, [esp + 0xd4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0xd0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
lea edx, [ecx + 1]
mov byte [esp + 0x28], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b10
sub ecx, edx
lea eax, [esp + 0xd0]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00404220
lea ecx, [esp + 0x28]
call fcn.00405370
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x402b6a
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402b60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320a
push edx
push ecx
call fcn.0045a799
add esp, 8
movaps xmm0, xmmword [0x49e050]
mov eax, dword [edi + 0x108]
mov dword [esp + 0x38], 0x1c060a55
mov dword [esp + 0x3c], 0x6914bc6f
movups xmmword [esp + 0x28], xmm0
test al, 1
jne 0x402bd6
xorps xmm0, xmm0
mov byte [edi + 0x128], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x108], eax
mov al, byte [esp + ecx + 0x28]
mov byte [ecx + edi + 0x110], al
add ecx, 1
adc edx, 0
jne 0x402bc9
cmp ecx, 0x18
jb 0x402bb1
push 0x47fb00
call fcn.0045a847
add esp, 4
cmp byte [edi + 0x128], 0
lea edx, [edi + 0x110]
mov dword [esp + 8], edx
je 0x402c35
xorps xmm0, xmm0
mov edi, edx
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x3369637b
and ecx, 7
mov edx, 0x696dc51b
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402c29
cmp esi, 0x18
jb 0x402c00
mov edx, dword [esp + 8]
mov byte [edi + 0x18], 0
mov edi, dword [esp + 0xc]
mov ecx, edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov byte [esp + 0x28], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402c50
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00404220
movaps xmm0, xmmword [0x49e060]
mov eax, dword [edi + 0x18c]
mov word [esp + 0x54], 0xd55f
movups xmmword [esp + 0x44], xmm0
test al, 1
jne 0x402cc7
xorps xmm0, xmm0
mov byte [edi + 0x14a], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x18c], eax
mov al, byte [esp + ecx + 0x44]
mov byte [ecx + edi + 0x138], al
add ecx, 1
adc edx, 0
jne 0x402cba
cmp ecx, 0x12
jb 0x402ca2
push 0x47fac0
call fcn.0045a847
add esp, 4
cmp byte [edi + 0x14a], 0
lea edx, [edi + 0x138]
mov dword [esp + 8], edx
je 0x402d26
xorps xmm0, xmm0
mov edi, edx
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x5949d57f
and ecx, 7
mov edx, 0x69bd2b5b
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402d1a
cmp esi, 0x12
jb 0x402cf1
mov edx, dword [esp + 8]
mov byte [edi + 0x12], 0
mov edi, dword [esp + 0xc]
mov ecx, edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d40
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x68]
call fcn.00404220
cmp dword [esp + 0x3c], 0x10
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x74]
cmovae edx, dword [esp + 0x28]
mov esi, dword [esp + 0x70]
sub eax, esi
mov ecx, dword [esp + 0x38]
push ecx
push edx
cmp ecx, eax
ja 0x402da0
cmp dword [esp + 0x7c], 0x10
lea eax, [ecx + esi]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
add esi, eax
push esi
call fcn.0045cc10
mov eax, dword [esp + 0x44]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x402db3
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x70]
call fcn.004048a0
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x44
push ecx
push 0
push 0
push 0
xor eax, eax
mov dword [esp + 0xb8], 1
cmp dword [esp + 0x88], 0x10
xorps xmm0, xmm0
push 0
mov word [esp + 0xd2], ax
mov word [esp + 0xc0], ax
lea eax, [esp + 0x78]
cmovae eax, dword [esp + 0x78]
push 0
push 0
push eax
push 0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
movlpd qword [esp + 0xc4], xmm0
movlpd qword [esp + 0xd2], xmm0
movlpd qword [esp + 0xda], xmm0
movaps xmmword [esp + 0xe8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402ef9
mov edx, dword [esp + 0x74]
cmp edx, 0x10
jb 0x402e97
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402e8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320f
push edx
push ecx
call fcn.0045a799
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
cmp eax, 0x10
jb 0x402ee0
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x402ed6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320f
push ecx
push esi
call fcn.0045a799
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x5f4]
xor ecx, esp
call fcn.0045a753
mov esp, ebp
pop ebp
ret 0x10
movaps xmm0, xmmword [0x49e020]
mov eax, dword [edi + 0xcc]
mov dword [esp + 0x54], 0x40b5c67a
mov dword [esp + 0x58], 0x1e4c6401
mov word [esp + 0x5c], 0xdb76
mov byte [esp + 0x5e], 0xdb
movups xmmword [esp + 0x44], xmm0
test al, 1
jne 0x402f75
xorps xmm0, xmm0
mov byte [edi + 0x107], 1
or eax, 1
movlpd qword [esp + 0x10], xmm0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xcc], eax
nop dword [eax]
mov al, byte [esp + ecx + 0x44]
mov byte [ecx + edi + 0xec], al
add ecx, 1
adc edx, 0
jne 0x402f68
cmp ecx, 0x1b
jb 0x402f50
push 0x47fa80
call fcn.0045a847
add esp, 4
cmp byte [edi + 0x107], 0
lea esi, [edi + 0xec]
mov dword [esp + 8], esi
je 0x402fd6
mov edi, dword [esp + 8]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, esi
mov eax, 0x3dba913
and ecx, 7
mov edx, 0x752f0169
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x20], 0
jne 0x402fca
cmp esi, 0x1b
jb 0x402fa1
mov esi, dword [esp + 8]
mov byte [edi + 0x1b], 0
mov edi, dword [esp + 0xc]
push 0x104
lea eax, [esp + 0x1dc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1d8]
push 0x5c
push eax
call fcn.0045c210
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x40300a
inc eax
mov dword [esp + 0x20], eax
push 0x104
lea eax, [esp + 0x3ec]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x20]
lea eax, [esp + 0x3ec]
push eax
push str._s_s
lea eax, [esp + 0x4fc]
push 0x104
push eax
call fcn.00405220
add esp, 0x14
lea eax, [esp + 0x4f0]
push 0
push eax
lea eax, [esp + 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
sub esp, 0x18
mov ecx, esp
push 4
push 0x49ded0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.00404220
movaps xmm0, xmmword [0x49e080]
mov eax, dword [edi + 0x10c]
mov dword [esp + 0x6c], 0x42b3a43a
mov dword [esp + 0x70], 0x7028b677
mov word [esp + 0x74], 0xb936
mov byte [esp + 0x76], 0xdd
movups xmmword [esp + 0x5c], xmm0
test al, 1
jne 0x4030f6
xorps xmm0, xmm0
mov byte [edi + 0xeb], 1
or eax, 1
movlpd qword [esp + 0x28], xmm0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10c], eax
mov al, byte [esp + ecx + 0x5c]
mov byte [ecx + edi + 0xd0], al
add ecx, 1
adc edx, 0
jne 0x4030e9
cmp ecx, 0x1b
jb 0x4030d1
push 0x47fa40
call fcn.0045a847
add esp, 4
cmp byte [edi + 0xeb], 0
lea edi, [edi + 0xd0]
je 0x40314d
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
nop word [eax + eax]
mov ecx, esi
mov eax, 0x1ddcb53
and ecx, 7
mov edx, 0x1b4bd31f
shl ecx, 3
call fcn.0047f150
xor byte [esi + edi], al
add esi, 1
adc dword [esp + 0x38], 0
jne 0x403149
cmp esi, 0x1b
jb 0x403120
mov byte [edi + 0x1b], 0
mov ecx, edi
call fcn.00405560
mov edx, dword [esp + 0x8c]
add esp, 0x18
cmp edx, 0x10
jb 0x403190
mov ecx, dword [esp + 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403186
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320f
push edx
push ecx
call fcn.0045a799
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
cmp eax, 0x10
jb 0x4031f4
mov ecx, dword [esp + 0x28]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40320f
push edx
push ecx
call fcn.0045a799
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x5f4]
xor ecx, esp
call fcn.0045a753
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
mov ecx, dword [esp + 0x5fc]
pop edi
pop esi
xor ecx, esp
call fcn.0045a753
mov esp, ebp
pop ebp
ret 0x10
call fcn.00460059
call fcn.00460059
int3