Function at 0x10074c5
Capabilities:
Get common file path
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x150], 0
push ebx
push esi
mov ebx, 0x1019160
push edi
mov eax, ebx
push 2
pop ecx
mov byte [eax], 0
add eax, 0x104
dec ecx
jne 0x10074ee
cmp eax, 0x1019570
jle 0x10074eb
cmp byte [0x1019779], cl
je 0x10077c4
xor edi, edi
lea eax, [ebp - 0x140]
inc edi
push 0x105
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x14c], eax
call fcn.01007232
test al, al
jne 0x1007540
cmp dword [ebp - 0x148], edi
jmp 0x10077b6
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1007560
cmp eax, dword [ebp - 0x148]
jbe 0x100759c
push eax
lea ecx, [ebp - 0x14c]
call fcn.01007232
test al, al
je 0x1007574
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
call esi
test eax, eax
jne 0x1007548
jmp 0x10075a0
push 0x1002578
lea eax, [ebp - 0x13c]
push 0x109
push eax
call fcn.0100742b
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1007535
test eax, eax
jne 0x10075ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002528
jmp 0x1007617
push dword [ebp - 0x14c]
mov esi, 0x104
push esi
push 0x1019264
call fcn.0100734b
push 0x5c
push dword [ebp - 0x14c]
call fcn.0100d8c0
pop ecx
pop ecx
test eax, eax
je 0x100760c
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10075dc
sub ecx, edi
je 0x100760c
mov ecx, dword [ebp - 0x14c]
sub ecx, eax
push 0x100251c
add ecx, esi
push ecx
push eax
call fcn.0100734b
push dword [ebp - 0x14c]
push esi
push ebx
call fcn.0100734b
jmp 0x1007638
push dword [ebp - 0x14c]
push 0x10024a8
lea eax, [ebp - 0x13c]
push 0x109
push eax
call fcn.0100742b
add esp, 0x10
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xa
pop ecx
mov esi, 0x1002478
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x150]
movsw word es:[edi], word [esi]
call fcn.01005bd9
push eax
push 0x20019
push 0
lea eax, [ebp - 0x30]
push eax
push 0x80000002
call fcn.01005c13
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10076a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1002408
lea eax, [ebp - 0x13c]
push 0x109
push eax
call fcn.0100742b
add esp, 0x14
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10077af
mov dword [ebp - 0x178], 0x10023f0
mov dword [ebp - 0x174], 0x10023dc
mov dword [ebp - 0x170], 0x10023cc
mov dword [ebp - 0x16c], 0x10023bc
mov dword [ebp - 0x168], 0x10023a4
mov dword [ebp - 0x164], 0x1002390
mov dword [ebp - 0x160], 0x1002380
mov dword [ebp - 0x15c], 0x1002370
mov dword [ebp - 0x154], 2
lea esi, [ebp - 0x174]
xor edi, edi
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x14c]
push 0
push 0
push dword [esi - 4]
push dword [ebp - 0x150]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
je 0x100776a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
lea eax, [ebp - 0x13c]
push ebx
push 0x1002300
push 0x109
push eax
call fcn.0100742b
add esp, 0x18
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x100778e
mov eax, dword [ebp - 0x154]
push dword [ebp - 0x14c]
add eax, edi
imul eax, eax, 0x104
push 0x104
add eax, 0x1019160
push eax
call fcn.0100734b
inc edi
add esi, 8
cmp edi, 2
jl 0x1007706
add dword [ebp - 0x154], 2
cmp dword [ebp - 0x154], 6
jl 0x1007704
cmp dword [ebp - 0x148], 1
jle 0x10077c4
push dword [ebp - 0x14c]
call fcn.0100d79a
pop ecx
lea ecx, [ebp - 0x150]
call fcn.01005bf7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret