Function at 0x4a7f30
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538976
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x234], ebx
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x4a8230
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 1
mov eax, 1
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x230], eax
jle 0x4a81c3
nop dword [eax]
mov edi, dword [ebx + eax*4]
test edi, edi
jne 0x4a7fea
mov edx, dword [esi - 0xc]
mov ebx, edi
sub ebx, esi
mov dword [ebp - 0x21c], edx
xor eax, eax
sar ebx, 1
jmp 0x4a802a
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7ff0
mov ecx, dword [esi - 0xc]
mov ebx, edi
sub ebx, esi
mov dword [ebp - 0x228], ecx
sub eax, edx
sar ebx, 1
sar eax, 1
mov dword [ebp - 0x21c], ecx
js 0x4a8226
push eax
push edi
call fcn.004fb6d3
mov edx, dword [ebp - 0x228]
add esp, 8
mov ecx, SysReAllocString
mov dword [ebp - 0x224], eax
sub ecx, eax
cmp ecx, edx
jl 0x4a8226
mov edx, dword [ebp - 0x21c]
add edx, eax
js 0x4a8226
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4a8070
push edx
lea ecx, [ebp - 0x220]
call fcn.0040d330
mov esi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
cmp ebx, eax
ja 0x4a807d
lea edi, [esi + ebx*2]
mov ebx, dword [ebp - 0x224]
lea eax, [esi + eax*2]
lea ecx, [ebx + ebx]
test ecx, ecx
je 0x4a80bd
test eax, eax
je 0x4a80ad
push ecx
test edi, edi
je 0x4a80a2
push edi
push eax
call fcn.004d4210
add esp, 0xc
jmp 0x4a80bd
push 0
push eax
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
mov eax, dword [ebp - 0x21c]
add eax, ebx
cmp eax, dword [esi - 8]
jg 0x4a8226
mov dword [esi - 0xc], eax
xor ecx, ecx
mov ebx, 0x56100c
mov word [esi + eax*2], cx
mov edi, dword [esi - 0xc]
sub ebx, esi
push 1
push 0x56100c
mov dword [ebp - 0x224], 0x56100c
sar ebx, 1
mov dword [ebp - 0x228], edi
call fcn.004fb6d3
mov ecx, SysReAllocString
mov dword [ebp - 0x21c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x4a8226
add edi, eax
js 0x4a8226
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4a8142
push edi
lea ecx, [ebp - 0x220]
call fcn.0040d330
mov esi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x228]
lea edx, [esi + ebx*2]
cmp ebx, eax
jbe 0x4a8155
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x21c]
lea eax, [esi + eax*2]
add ecx, ecx
je 0x4a8192
test eax, eax
je 0x4a8182
push ecx
test edx, edx
je 0x4a8177
push edx
push eax
call fcn.004d4210
add esp, 0xc
jmp 0x4a8192
push 0
push eax
call fcn.004d52d0
add esp, 0xc
call fcn.004e08a8
mov dword [eax], 0x16
call fcn.004e0781
cmp edi, dword [esi - 8]
jg 0x4a8226
mov ebx, dword [ebp - 0x234]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x22c]
inc eax
mov dword [ebp - 0x22c], eax
cmp eax, dword [ebp - 0x230]
jl 0x4a7fd0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0xa
push 0
push esi
lea eax, [ebp - 0x218]
push eax
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x1f
setg bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a8208
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040fbc0
push 0x80004005
call fcn.0040fbc0
int3