Function at 0x4180a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4ae214]
mov edx, dword [eax + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov ecx, 0x4ae214
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], 0x80004005
call edx
add eax, 0x10
push str.http
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
call fcn.00405690
lea eax, [ebp - 8]
lea edi, [ebp - 0x48]
call fcn.00406190
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41810d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.https
lea ecx, [ebp - 8]
call fcn.00405690
lea eax, [ebp - 8]
lea edi, [ebp - 0x48]
call fcn.00406190
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418144
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00431f60
cmp eax, 6
jb 0x4181c8
lea ecx, [ebp - 0xc]
push ecx
push str._n_vSN
push 3
push esi
push 0x497350
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
sub eax, edx
sar eax, 2
cmp eax, esi
jbe 0x4181b0
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
je 0x418474
cmp eax, esi
ja 0x418191
push str.invalid_vector_T__subscript
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov edx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edi, [ebp - 0x24]
push edi
push 1
push 1
push edx
push ecx
call eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00405740
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x418474
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x418474
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], esi
sar eax, 2
mov dword [ebp - 0x24], eax
cmp eax, esi
jbe 0x418474
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 8], ecx
jmp 0x4181ea
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jbe 0x418186
mov ebx, dword [ebp - 8]
mov edi, str._shellopencommand
lea esi, [ebp - 0xc]
call fcn.00405dd0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x20019
xor edi, edi
push edi
push eax
push 0x80000000
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418227
mov dword [ebp - 0x14], edi
mov edx, dword [0x4ae214]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ae214
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], edi
je 0x41826b
push 0x498b64
lea ecx, [ebp - 0x30]
call fcn.00405690
or dword [ebp - 0x18], 1
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x14]
push edx
lea esi, [ebp - 0x1c]
call fcn.00426640
test eax, eax
je 0x41826b
xor bl, bl
jmp 0x41826d
mov bl, 1
test byte [ebp - 0x18], 1
je 0x418296
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418296
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4183d2
lea ebx, [ebp - 0x1c]
call fcn.00406260
mov ebx, eax
call fcn.004062e0
mov eax, dword [ebp - 0x1c]
xor esi, esi
cmp dword [eax - 0xc], esi
je 0x418415
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x28]
call fcn.00405690
lea ebx, [ebp - 0x28]
call fcn.00406260
mov ebx, eax
call fcn.004062e0
mov ecx, dword [ebp - 0x28]
push 0x104
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
push edx
lea ecx, [ebp - 0x34]
call fcn.00405690
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x41831e
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
call fcn.00406470
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41833a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418359
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418378
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x418389
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x41839a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], 4
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x24]
jb 0x4181e7
jmp 0x418472
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4183f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x418402
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x418453
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
jmp 0x418453
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x418442
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x418453
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov edi, dword [ebp - 0x20]
mov eax, dword [edi - 0xc]
cmp eax, esi
je 0x418497
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, esi
jne 0x41848f
call fcn.00406620
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ebp - 0x38], esi
mov ebx, dword [ebp - 0x48]
cmp ebx, esi
je 0x4184d9
mov edi, dword [ebp - 0x44]
mov esi, ebx
cmp ebx, edi
je 0x4184cc
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4184c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4184a7
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [ebp - 0x20]
add esp, 4
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4184f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4