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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x77d260c4]
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 0x77d2a738
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 0x77ceaea7
push ebx
push edi
lea eax, [ebp - 0x838]
push eax
mov ebx, 0x20019
push ebx
push esi
push 0x77ca2df0
mov edi, 0x80000002
push edi
call sym.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x77ca2d46
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x830]
push eax
push esi
push 0x77cc70c4
push dword [ebp - 0x838]
mov dword [ebp - 0x834], 4
mov dword [ebp - 0x830], esi
call fcn.77ca9780
test eax, eax
jne 0x77ca2d3b
cmp dword [ebp - 0x830], 4
jne 0x77ca2d3b
cmp dword [ebp - 0x83c], esi
jne 0x77ceaeb1
push dword [ebp - 0x838]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x824], esi
je 0x77ceaf3a
cmp dword [ebp - 0x82c], esi
jne 0x77ceaf91
cmp dword [ebp - 0x824], esi
je 0x77ca2db7
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 0x77ca2dd0
push dword [ebp - 0x824]
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], esi
call fcn.77ca9780
test eax, eax
je 0x77ceaf6c
cmp dword [ebp - 0x820], esi
mov dword [ebp - 0x82c], esi
jne 0x77ceaf7a
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.77cd6011
leave
ret 4
mov eax, dword [0x77d2b29c]
jmp 0x77ca2dbb
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 0x77cb70c8
push 0x104
lea eax, [ebp - 0x81c]
push eax
call fcn.77cac786
cmp eax, esi
jl 0x77ceaf2f
push 0x77ceb2d4
push 0x104
lea eax, [ebp - 0x81c]
push eax
call fcn.77cac786
cmp eax, esi
jl 0x77ceaf2f
lea eax, [ebp - 0x81c]
push eax
push esi
push 0x77ceb240
push 0x77ceb2c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
jmp 0x77ca2d3b
mov dword [ebp - 0x82c], esi
jmp 0x77ca2d3b
lea eax, [ebp - 0x824]
push eax
push ebx
push esi
push 0x77ca9ae0
push edi
call sym.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x77ceaf61
mov dword [ebp - 0x820], 1
jmp 0x77ca2d52
mov dword [ebp - 0x824], esi
jmp 0x77ca2d52
cmp dword [ebp - 0x830], edi
jne 0x77ca2da5
jmp 0x77ceaf85
push dword [ebp - 0x824]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x82c], esi
je 0x77ca2db7
cmp dword [ebp - 0x824], esi
je 0x77ceb02c
push 1
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x830]
push eax
push esi
push 0x77ceb220
push dword [ebp - 0x824]
mov dword [ebp - 0x830], esi
mov dword [ebp - 0x834], 0x20a
call fcn.77ca9780
test eax, eax
jne 0x77ceafe8
cmp dword [ebp - 0x830], 1
jne 0x77ceafe8
mov dword [ebp - 0x828], esi
cmp dword [ebp - 0x820], esi
je 0x77ceaffb
push dword [ebp - 0x824]
call sym.ADVAPI32.dll_RegCloseKey
cmp dword [ebp - 0x828], esi
jne 0x77ceb02c
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 0x77ceb012
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x828], eax
jmp 0x77ceb0a2
push 0x104
lea eax, [ebp - 0x610]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
jbe 0x77ceb08e
push 0x77cb70c8
mov edi, 0x105
push edi
lea eax, [ebp - 0x610]
push eax
call fcn.77cac786
cmp eax, esi
jl 0x77ceb08e
push 0x77ceb288
push edi
lea eax, [ebp - 0x610]
push eax
call fcn.77cac786
cmp eax, esi
jl 0x77ceb08e
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 0x77ceb01c
jmp 0x77ceb082
mov dword [ebp - 0x828], 0x1e
mov dword [ebp - 0x820], 0x77ceb2a0
mov eax, dword [ebp - 0x828]
add eax, 0x96
mov edi, 0x400
cmp eax, edi
jbe 0x77ceb0c1
mov dword [0x77d2b29c], esi
jmp 0x77ca2db7
mov eax, dword [ebp - 0x82c]
push edi
mov dword [0x77d2b29c], 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, 0x77ceb268
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 0x77ceb158
mov eax, dword [ebp - 0x3fc]
mov dword [0x77d346f0], eax
mov eax, dword [ebp - 0x3f8]
jmp 0x77ceb1f6
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 0x77ceb206
mov eax, dword [ebp - 0x844]
mov dword [0x77d346f0], eax
mov eax, dword [ebp - 0x840]
mov dword [0x77d346f4], eax
mov eax, dword [ebp - 0x82c]
jmp 0x77ca2db9
xor eax, eax
mov dword [0x77d2b29c], eax
mov dword [0x77d346f0], eax
mov dword [0x77d346f4], eax
jmp 0x77ca2db7