Function at 0x4068e0
Capabilities:
Accept command line arguments
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538b3d
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58d140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x21d], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x238]
call fcn.00405e40
push 0x56802c
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.00405e40
push 0
push 0x26
lea ecx, [ebp - 0x21c]
push ecx
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00405e40
push str.Software_Updaterupgrader.log
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x228]
push ecx
mov byte [ebp - 4], 2
call fcn.00405660
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov esi, dword [ebp - 0x224]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4069f0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4069e0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4069e0
push eax
call fcn.00401590
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4069d5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x224], ebx
jmp 0x4069f0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.004014d0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x250]
call fcn.004108f5
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x406a3f
call fcn.00401580
push 0
push 0x3001
push eax
lea ecx, [ebp - 0x250]
call fcn.004107d3
test eax, eax
je 0x406b0c
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 0x2c]
push 2
push 0
push 0
lea ecx, [ebp - 0x250]
call eax
push 0x56819c
lea ecx, [ebp - 0x234]
call fcn.00405e40
mov ecx, dword [ebp - 0x230]
push eax
push ecx
lea edx, [ebp - 0x228]
mov bl, 5
push edx
mov byte [ebp - 4], bl
call fcn.00403070
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x250]
call fcn.004109d0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ad4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406afa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x250]
call fcn.00410b96
mov byte [ebp - 0x21d], 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.00410c12
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x21d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050e0a7
mov esp, ebp
pop ebp
ret 4