Function at 0x411710
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov dl, byte [0x42067c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x420678]
mov byte [esp + 0x128], dl
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.log_file]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x120], eax
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x129]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x422b20]
mov dword [esp + 0x10], 0
cmp eax, 6
mov dword [esp + 0x14], 0x104
push 0
jl 0x4117a5
push 0x2e
jmp 0x4117a7
push 0x23
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.Authenticate_ClientAdAuth.log
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push 0x20019
and ecx, 3
push 0
push str.SOFTWARENscAuth
push getsockname
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4118be
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [ebx + 0x43c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418650
lea eax, [esp + 0x20]
push 0x420650
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0xc
test eax, eax
je 0x41185f
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
mov ecx, 0x41
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [ebx + 0x130]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.AdAuth.log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0x224]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x12c]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4118fa
add ebx, 0x43c
push ebx
call fcn.00418650
add esp, 4
jmp 0x411924
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x43c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret