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

Disassembly:
sub esp, 0x320
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
mov byte [esp + 0x128], bl
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 + 0x129]
mov byte [esp + 0x22c], bl
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 + 0x22d]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x28]
push 0x23
mov edx, 0x104
push eax
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ebx
call ebp
mov edi, str.Authenticate_ClientIcgAuthClient.conf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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 eax, dword [0x4069e4]
mov ecx, edx
and ecx, 3
cmp eax, 6
rep movsb byte es:[edi], byte [esi]
jl 0x40316c
push ebx
lea eax, [esp + 0x28]
push 0x2e
push eax
push ebx
call ebp
mov edi, str.Authenticate_ClientIcgAuthClient.conf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4069e8
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]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403e50
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x2001f
push ebx
push str.SOFTWARENscAuth
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403194
lea edi, [esp + 0x24]
jmp 0x40326d
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x22c]
mov eax, ecx
inc ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push edx
push ecx
lea edx, [esp + 0x20]
push ebx
lea ecx, [esp + 0x138]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
call ebp
test eax, eax
jne 0x40323a
mov esi, str.config_file
lea eax, [esp + 0x128]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403201
cmp cl, bl
je 0x4031fd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403201
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4031dd
xor eax, eax
jmp 0x403206
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40325b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
mov eax, 0x104
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jmp 0x40319a
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x406aec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x403288
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x406aec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x406aec
rep movsb byte es:[edi], byte [esi]
call fcn.00403e50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x320
ret