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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
xor ecx, ecx
inc ecx
push esi
push ecx
push 0x77d1e700
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x83c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x77cdc611
push ebx
push edi
lea eax, [ebp - 0x838]
push eax
mov ebx, 0x20019
push ebx
push esi
push 0x77c9a990
mov edi, 0x80000002
push edi
call sym.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x77c9a8ea
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x830]
push eax
push esi
push 0x77cbd7cc
push dword [ebp - 0x838]
mov dword [ebp - 0x834], 4
mov dword [ebp - 0x830], esi
call fcn.77c9e52f
test eax, eax
jne 0x77c9a8df
cmp dword [ebp - 0x830], 4
jne 0x77c9a8df
cmp dword [ebp - 0x83c], esi
jne 0x77cdc61b
push dword [ebp - 0x838]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x824], esi
je 0x77cdc6a4
cmp dword [ebp - 0x82c], esi
jne 0x77cdc6fb
cmp dword [ebp - 0x824], esi
je 0x77c9a95b
push 4
pop edi
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x830]
push eax
push esi
push 0x77c9a970
push dword [ebp - 0x824]
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], esi
call fcn.77c9e52f
test eax, eax
je 0x77cdc6d6
cmp dword [ebp - 0x820], esi
mov dword [ebp - 0x82c], esi
jne 0x77cdc6e4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77cc744e
leave
ret 4
mov eax, dword [0x77d1f248]
jmp 0x77c9a95f
push 0x20a
lea eax, [ebp - 0x81c]
push esi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x77cbec98
push 0x104
lea eax, [ebp - 0x81c]
push eax
call fcn.77ca0f32
cmp eax, esi
jl 0x77cdc699
push 0x77cdca3c
push 0x104
lea eax, [ebp - 0x81c]
push eax
call fcn.77ca0f32
cmp eax, esi
jl 0x77cdc699
lea eax, [ebp - 0x81c]
push eax
push esi
push 0x77cdc9a8
push 0x77cdca28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
jmp 0x77c9a8df
mov dword [ebp - 0x82c], esi
jmp 0x77c9a8df
lea eax, [ebp - 0x824]
push eax
push ebx
push esi
push 0x77c9ecd0
push edi
call sym.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x77cdc6cb
mov dword [ebp - 0x820], 1
jmp 0x77c9a8f6
mov dword [ebp - 0x824], esi
jmp 0x77c9a8f6
cmp dword [ebp - 0x830], edi
jne 0x77c9a949
jmp 0x77cdc6ef
push dword [ebp - 0x824]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x82c], esi
je 0x77c9a95b
cmp dword [ebp - 0x824], esi
je 0x77cdc796
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x830]
push eax
push esi
push 0x77cdc988
push dword [ebp - 0x824]
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x834], 0x20a
call fcn.77c9e52f
test eax, eax
jne 0x77cdc752
cmp dword [ebp - 0x830], 1
jne 0x77cdc752
mov dword [ebp - 0x828], esi
cmp dword [ebp - 0x820], esi
je 0x77cdc765
push dword [ebp - 0x824]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x828], esi
jne 0x77cdc796
lea eax, [ebp - 0x610]
mov dword [ebp - 0x820], eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x77cdc77c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x828], eax
jmp 0x77cdc80c
push 0x104
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jbe 0x77cdc7f8
push 0x77cbec98
mov edi, 0x105
push edi
lea eax, [ebp - 0x610]
push eax
call fcn.77ca0f32
cmp eax, esi
jl 0x77cdc7f8
push 0x77cdc9f0
push edi
lea eax, [ebp - 0x610]
push eax
call fcn.77ca0f32
cmp eax, esi
jl 0x77cdc7f8
lea eax, [ebp - 0x610]
mov dword [ebp - 0x820], eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
je 0x77cdc786
jmp 0x77cdc7ec
mov dword [ebp - 0x828], 0x1e
mov dword [ebp - 0x820], 0x77cdca08
mov eax, dword [ebp - 0x828]
add eax, 0x96
mov edi, 0x400
cmp eax, edi
jbe 0x77cdc82b
mov dword [0x77d1f248], esi
jmp 0x77c9a95b
mov eax, dword [ebp - 0x82c]
push edi
mov dword [0x77d1f248], eax
lea eax, [ebp - 0x404]
push esi
push eax
call sub.ntdll.dll_memset
push 7
mov dword [ebp - 0x404], edi
pop ecx
push dword [ebp - 0x828]
mov ebx, 0x77cdc9d0
push dword [ebp - 0x820]
mov dword [ebp - 0x3d8], 0x20000
mov dword [ebp - 0x394], 0x78
mov dword [ebp - 0x398], 0x96
mov esi, ebx
lea edi, [ebp - 0x38c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x36e]
push eax
movsw word es:[edi], word [esi]
call sub.ntdll.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
push ebx
xor edi, edi
push edi
push edi
call sym.ADVAPI32.dll_QueryTraceW
test eax, eax
jne 0x77cdc8c2
mov eax, dword [ebp - 0x3fc]
mov dword [0x77d28728], eax
mov eax, dword [ebp - 0x3f8]
jmp 0x77cdc960
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call sub.ntdll.dll_memset
push 7
mov dword [ebp - 0x404], esi
pop ecx
push dword [ebp - 0x828]
mov dword [ebp - 0x3d8], 0x20000
push dword [ebp - 0x820]
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]
lea eax, [ebp - 0x36e]
push eax
movsw word es:[edi], word [esi]
call sub.ntdll.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
push ebx
lea eax, [ebp - 0x844]
push eax
call sym.ADVAPI32.dll_StartTraceW
test eax, eax
jne 0x77cdc970
mov eax, dword [ebp - 0x844]
mov dword [0x77d28728], eax
mov eax, dword [ebp - 0x840]
mov dword [0x77d2872c], eax
mov eax, dword [ebp - 0x82c]
jmp 0x77c9a95d
xor eax, eax
mov dword [0x77d1f248], eax
mov dword [0x77d28728], eax
mov dword [0x77d2872c], eax
jmp 0x77c9a95b