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

Disassembly:
sub esp, 0x850
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x762ad0], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2c
mov byte [esp + 0x85f], 0
mov byte [esp + 0x855], 0
mov byte [esp + 0x85e], 0x6c
mov byte [esp + 0x854], 0x72
call ebp
test eax, eax
je 0x6e6bf2
call fcn.00401090
call fcn.00401160
mov al, byte [esp + 0x85a]
mov dl, byte [esp + 0x850]
mov cl, 0x73
mov byte [esp + 0x859], al
mov byte [esp + 0x84b], cl
mov byte [esp + 0x858], 0x64
mov byte [esp + 0x84d], dl
mov byte [esp + 0x84e], cl
mov byte [esp + 0x857], 0x2e
mov byte [esp + 0x856], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, dword [0x7630b8]
mov cl, byte [esp + 0x858]
mov dword [0x762b6c], eax
mov al, byte [esp + 0x85a]
push edx
mov byte [esp + 0x859], al
mov byte [esp + 0x858], cl
mov byte [esp + 0x857], 0x74
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edi, edi
mov al, byte [esp + 0x853]
mov byte [esp + 0x852], 0x4e
mov byte [esp + 0x84f], al
mov byte [esp + 0x84c], al
mov dword [0x75aa4c], edi
call esi
mov dword [0x75aa30], eax
mov eax, dword [0x75aa4c]
inc eax
cmp eax, 2
mov dword [0x75aa4c], eax
jb 0x6e6c9c
push 0x762b78
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x6e6d26
mov eax, dword [0x762ca0]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 6
push 0x75aa88
push 1
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, dword [0x75aa54]
mov dword [ecx], fcn.006e7130
mov edx, dword [0x75aa54]
mov eax, dword [edx]
mov dword [0x762a88], eax
call fcn.006e6f00
call fcn.0067cd50
mov dword [0x75aa40], eax
call fcn.00401160
mov ecx, dword [0x75aa54]
mov dword [0x7630c0], edi
mov dword [ecx], fcn.006e7130
call fcn.006e7050
jmp 0x6e6d5d
push 0x2c
call ebp
test eax, eax
je 0x6e6d38
call fcn.00612f40
call fcn.00612e60
call fcn.00401000
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x75aa88
push 0x75aa88
mov dword [0x762cb0], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [0x75aa3c], eax
lea edx, [esp + 0x852]
mov dword [esp + 0x18], fcn.004d5410
push edx
mov dword [esp + 0x20], 0x53f240
mov dword [esp + 0x24], 0x5a9050
mov dword [esp + 0x28], fcn.00612f40
mov dword [esp + 0x2c], fcn.006e7220
mov dword [esp + 0x30], 0x67cd80
mov dword [esp + 0x34], 0x46b600
mov dword [esp + 0x38], 0x53f220
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x762ad4]
mov dword [0x762c98], eax
cmp ecx, edi
jne 0x6e6dc4
lea ecx, [esp + 0x5c]
mov dword [0x762ad4], ecx
mov edx, dword [esp + 0x860]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x84b]
mov dword [esp + 0xc], edx
push ecx
push eax
mov dword [esp + 0x1c], fcn.00401160
call esi
mov dword [0x75aa40], eax
mov eax, dword [0x762ad4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], 0x757040
add edx, 0x10
mov dword [0x75aa4c], edi
push edx
push eax
push edi
mov dword [0x75aa50], edi
mov dword [0x7630b8], eax
call fcn.006e7130
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], esi
push eax
call dword [0x762ad4]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
add esp, 0x10
lea ecx, [esp + 0x40]
push edi
push edi
push edi
push ecx
call esi
test eax, eax
je 0x6e6ee6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, dword [sym.imp.WININET.dll_HttpEndRequestA]
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateGuid]
mov edx, dword [0x75aa3c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [0x7630b8], eax
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x44]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x6e6ea2
push 0x75aa88
call ebx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [0x762cb0]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push SysFreeString
call edi
mov edx, dword [0x762b08]
push edx
push 0x3d
push 0x75aa88
push 0
call ebp
push 0
push 0
lea eax, [esp + 0x4c]
push 0
push eax
call esi
test eax, eax
jne 0x6e6e57
pop ebx
call fcn.0067cd50
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0x10