Function at 0x76aa58fe
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x76aae004]
push esi
push edi
xor esi, esi
push esi
xor edi, edi
inc edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push 0x76aae4f4
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x838], esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x76aa594e
mov eax, dword [0x76aae4f0]
jmp 0x76aa5cfe
push ebx
lea eax, [ebp - 0x834]
push eax
push 0x20019
push esi
push 0x76aa5e28
mov ebx, 0x80000002
push ebx
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x76aa5a2e
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x820]
push eax
push esi
push 0x76aa5dfc
push dword [ebp - 0x834]
mov dword [ebp - 0x82c], 4
mov dword [ebp - 0x820], esi
call fcn.76aa7e91
test eax, eax
jne 0x76aa5a22
cmp dword [ebp - 0x820], 4
jne 0x76aa5a22
cmp dword [ebp - 0x838], esi
je 0x76aa5a22
mov ecx, 0x82
lea edi, [ebp - 0x818]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x76aa1980
lea eax, [ebp - 0x818]
push eax
call edi
push 0x76aa5de4
lea eax, [ebp - 0x818]
push eax
call edi
lea eax, [ebp - 0x818]
push eax
push esi
push 0x76aa5d50
push 0x76aa5dd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor edi, edi
mov dword [ebp - 0x824], eax
inc edi
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x824], esi
jne 0x76aa5ad0
cmp dword [ebp - 0x828], esi
jne 0x76aa5a64
lea eax, [ebp - 0x828]
push eax
push 0x20019
push esi
push 0x76aa25d8
push ebx
call sub.ADVAPI32.dll_RegOpenKeyExW
cmp eax, esi
mov dword [ebp - 0x81c], edi
jne 0x76aa5ac4
push 4
pop ebx
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x820]
push eax
push esi
push 0x76aa5d10
push dword [ebp - 0x828]
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x820], esi
call fcn.76aa7e91
test eax, eax
jne 0x76aa5aa6
cmp dword [ebp - 0x820], ebx
je 0x76aa5ac4
cmp dword [ebp - 0x81c], esi
mov dword [ebp - 0x824], esi
je 0x76aa5cfb
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x824], esi
je 0x76aa5cfb
push edi
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x820]
push eax
push esi
push 0x76aa5d30
push dword [ebp - 0x828]
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x82c], 0x20a
call fcn.76aa7e91
cmp dword [ebp - 0x81c], esi
mov ebx, eax
je 0x76aa5b1d
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x76aa5b48
cmp dword [ebp - 0x820], edi
jne 0x76aa5b48
lea eax, [ebp - 0x610]
push eax
mov dword [ebp - 0x81c], eax
call sub.msvcrt.dll_wcslen
lea eax, [eax + eax + 2]
pop ecx
mov dword [ebp - 0x830], eax
jmp 0x76aa5b96
push 0x104
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jbe 0x76aa5b82
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x76aa1980
lea eax, [ebp - 0x610]
push eax
call esi
push 0x76aa5d98
lea eax, [ebp - 0x610]
push eax
call esi
jmp 0x76aa5b29
mov dword [ebp - 0x81c], 0x76aa5db0
mov dword [ebp - 0x830], 0x1e
mov eax, dword [ebp - 0x824]
mov dword [0x76aae4f0], eax
push 7
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x404]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x404], 0x400
mov dword [ebp - 0x3d8], 0x20000
mov dword [ebp - 0x394], 0x78
mov dword [ebp - 0x398], 0x96
mov ebx, 0x76aa5d78
mov esi, ebx
lea edi, [ebp - 0x38c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x830]
mov eax, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x81c]
shr ecx, 2
lea edi, [ebp - 0x36e]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x404]
push eax
push ebx
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call sub.ADVAPI32.dll_QueryTraceW
test eax, eax
jne 0x76aa5c42
mov eax, dword [ebp - 0x3fc]
mov dword [0x76aae4e8], eax
mov eax, dword [ebp - 0x3f8]
mov dword [0x76aae4ec], eax
mov eax, dword [ebp - 0x824]
jmp 0x76aa5cfd
xor eax, eax
push 7
mov ecx, 0x100
lea edi, [ebp - 0x404]
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x404], 0x400
mov dword [ebp - 0x3d8], 0x20000
mov dword [ebp - 0x3d4], 0x40
mov dword [ebp - 0x3c4], 0x1000005
mov dword [ebp - 0x394], 0x78
mov dword [ebp - 0x398], 0x96
mov esi, ebx
lea edi, [ebp - 0x38c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x830]
mov eax, ecx
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x81c]
shr ecx, 2
lea edi, [ebp - 0x36e]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x404]
push eax
push ebx
lea eax, [ebp - 0x840]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.ADVAPI32.dll_StartTraceW
test eax, eax
jne 0x76aa5cea
mov eax, dword [ebp - 0x840]
mov dword [0x76aae4e8], eax
mov eax, dword [ebp - 0x83c]
jmp 0x76aa5c32
xor eax, eax
mov dword [0x76aae4f0], eax
mov dword [0x76aae4e8], eax
mov dword [0x76aae4ec], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.76aac8aa
leave
ret 4