Function at 0x40f7d0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498e55
mov eax, dword fs:[0]
push eax
sub esp, 0x6f8
mov eax, dword [0x4cb070]
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
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x6ec], eax
lea eax, [ebp - 0x674]
push eax
mov dword [ebp - 0x6e8], ebx
mov dword [ebp - 0x6e4], 0
call fcn.00410000
mov dword [ebp - 4], 0
cmp dword [ebp - 0x664], 0
jne 0x40f840
xor esi, esi
jmp 0x40fece
cmp dword [ebx + 0x14], 8
jb 0x40f84a
mov ecx, dword [ebx]
jmp 0x40f84c
mov ecx, ebx
cmp dword [ebp - 0x660], 8
lea eax, [ebp - 0x674]
push ecx
cmovae eax, dword [ebp - 0x674]
push eax
lea eax, [ebp - 0x628]
push str._s_shell_scommand
push eax
call fcn.00410dd0
xor eax, eax
mov dword [ebp - 0x648], 7
add esp, 0x10
mov dword [ebp - 0x64c], 0
mov word [ebp - 0x65c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x63c], eax
movq qword [ebp - 0x644], xmm0
mov dword [ebp - method.Registry.virtual_0], vtable.Registry.0
mov dword [ebp - 0x640], htons
mov dword [ebp - 0x63c], htons
lea eax, [ebp - 0x6e4]
mov byte [ebp - 4], 2
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f90d
mov eax, dword [ebp - 0x6e4]
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x65c]
push eax
push 0x4aed34
call fcn.004455e0
cmp dword [ebp - 0x64c], 0
jne 0x40fb42
cmp dword [ebp - 0x664], 0
je 0x40fb79
mov ecx, dword [edi + 0x34]
mov eax, 0x30c30c31
sub ecx, dword [edi + 0x30]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40fb79
mov esi, dword [edi + 0x30]
mov edi, dword [edi + 0x34]
cmp esi, edi
je 0x40fb79
push 0x54
lea eax, [ebp - 0x6e0]
push 0
push eax
call fcn.00474730
add esp, 0xc
lea ecx, [ebp - 0x6e0]
push esi
call fcn.0040ff10
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 8
jb 0x40f97f
mov ecx, dword [ebx]
jmp 0x40f981
mov ecx, ebx
cmp dword [ebp - 0x690], 8
lea edx, [ebp - 0x6a4]
mov eax, dword [ebx + 0x10]
mov ebx, eax
cmovae edx, dword [ebp - 0x6a4]
cmp dword [ebp - 0x694], eax
cmovb ebx, dword [ebp - 0x694]
test ebx, ebx
jne 0x40f9d0
xor eax, eax
test eax, eax
jne 0x40fa74
mov edx, dword [ebp - 0x6e8]
mov ecx, dword [ebp - 0x694]
mov eax, dword [edx + 0x10]
cmp eax, ecx
jbe 0x40f9f1
or eax, 0xffffffff
jmp 0x40f9f5
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40f9e3
add edx, 2
add ecx, 2
sub ebx, 1
jmp 0x40f9a9
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x40f9ad
sbb eax, eax
neg eax
test eax, eax
jne 0x40fa74
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
cmp dword [ecx + 0x14], 8
jb 0x40fa12
mov eax, dword [ecx]
jmp 0x40fa14
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push dword [ebp - 0x6ec]
mov word [eax], dx
call fcn.0040a610
lea ecx, [ebp - 0x704]
call fcn.004466e0
add esp, 0x18
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40fa40
mov eax, dword [eax]
push ecx
push 0
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00402c50
mov ecx, dword [ebp - 0x6f0]
mov ebx, eax
cmp ecx, 8
jb 0x40fa6f
inc ecx
push ecx
push dword [ebp - 0x704]
lea ecx, [ebp - 0x704]
call fcn.0040aba0
cmp ebx, 0xffffffff
jne 0x40fa99
lea ecx, [ebp - 0x6e0]
mov byte [ebp - 4], 2
call fcn.0040e860
add esi, 0x54
cmp esi, edi
je 0x40fb79
mov ebx, dword [ebp - 0x6e8]
jmp 0x40f952
push 0x3c
call fcn.00459a9f
mov esi, eax
mov dword [ebp - 0x6ec], esi
push 0x3c
push 0
push esi
mov byte [ebp - 4], 4
call fcn.00474730
mov dword [esi + 0x10], 0
add esp, 0x10
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40fadf
mov eax, dword [esi]
jmp 0x40fae1
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [ebp - 0x6c8]
push ecx
push eax
mov ecx, esi
call fcn.0040a610
lea eax, [ebp - 0x6b0]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x18]
call fcn.00410850
xor eax, eax
mov byte [ebp - 4], 6
push 0xffffffffffffffff
lea ecx, [esi + 0x24]
mov dword [ecx + 0x14], 7
push eax
push dword [ebp - 0x6e8]
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.0040a610
lea ecx, [ebp - 0x6e0]
call fcn.0040e860
jmp 0x40fe82
cmp dword [ebp - 0x648], 8
lea ecx, [ebp - 0x62c]
lea eax, [ebp - 0x65c]
mov dword [ebp - 0x62c], 0
cmovae eax, dword [ebp - 0x65c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x62c], 1
mov edi, eax
jge 0x40fb80
xor esi, esi
jmp 0x40fe82
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00474730
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x104
push eax
push dword [edi]
call ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x68c]
call fcn.00402b00
xorps xmm0, xmm0
mov dword [ebp - 0x630], 0
movq qword [ebp - 0x638], xmm0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x630], 0
mov esi, 1
mov byte [ebp - 4], 8
cmp dword [ebp - 0x62c], esi
jle 0x40fcd7
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00474730
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [edi + esi*4]
call ebx
xor eax, eax
mov dword [ebp - 0x6f0], 7
mov dword [ebp - 0x6f4], 0
mov word [ebp - 0x704], ax
cmp word [ebp - 0x420], ax
jne 0x40fc61
xor ecx, ecx
jmp 0x40fc7f
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fc70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x704]
call fcn.0040a9c0
lea eax, [ebp - 0x704]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x638]
call fcn.004107b0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x6f0]
cmp eax, 8
jb 0x40fcca
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040aba0
inc esi
cmp esi, dword [ebp - 0x62c]
jl 0x40fc10
push 0x3c
call fcn.00459a9f
mov esi, eax
mov dword [ebp - 0x6ec], esi
push 0x3c
push 0
push esi
mov byte [ebp - 4], 0xa
call fcn.00474730
xor eax, eax
mov dword [ebp - 0x6f0], 7
add esp, 0x10
mov dword [ebp - 0x6f4], 0
mov word [ebp - 0x704], ax
cmp word [ebp - 0x218], ax
jne 0x40fd21
xor ecx, ecx
jmp 0x40fd3f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x704]
call fcn.0040a9c0
mov byte [ebp - 4], 0xb
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x6e4], 1
mov dword [esi + 0x10], 0
jb 0x40fd86
mov eax, dword [esi]
jmp 0x40fd88
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [ebp - 0x704]
push ecx
push eax
mov ecx, esi
call fcn.0040a610
lea eax, [ebp - 0x638]
mov dword [ebp - 4], 0xc
push eax
lea ecx, [esi + 0x18]
call fcn.00410850
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40fdd3
mov eax, dword [ecx]
jmp 0x40fdd5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push dword [ebp - 0x6e8]
mov word [eax], dx
call fcn.0040a610
mov eax, dword [ebp - 0x6f0]
cmp eax, 8
jb 0x40fe06
inc eax
lea ecx, [ebp - 0x704]
push eax
push dword [ebp - 0x704]
call fcn.0040aba0
mov edi, dword [ebp - 0x638]
test edi, edi
je 0x40fe47
push dword [ebp - 0x6ec]
mov edx, dword [ebp - 0x634]
push ecx
mov ecx, edi
call fcn.00411080
mov ecx, dword [ebp - 0x630]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.004109d0
mov eax, dword [ebp - 0x678]
cmp eax, 8
jb 0x40fe65
inc eax
lea ecx, [ebp - 0x68c]
push eax
push dword [ebp - 0x68c]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x678], 7
mov dword [ebp - 0x67c], 0
mov word [ebp - 0x68c], ax
mov eax, dword [ebp - 0x63c]
test eax, eax
je 0x40fe93
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x648]
cmp eax, 8
jb 0x40feb1
inc eax
lea ecx, [ebp - 0x65c]
push eax
push dword [ebp - 0x65c]
call fcn.0040aba0
xor eax, eax
mov dword [ebp - 0x648], 7
mov dword [ebp - 0x64c], 0
mov word [ebp - 0x65c], ax
mov ecx, dword [ebp - 0x660]
cmp ecx, 8
jb 0x40feec
inc ecx
push ecx
push dword [ebp - 0x674]
lea ecx, [ebp - 0x674]
call fcn.0040aba0
mov eax, esi
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.00459a5d
mov esp, ebp
pop ebp
ret 8