Function at 0x10077ec
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x1011040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x10b]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x63c], 1
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push 0x1002a58
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x630], eax
cmp eax, ebx
je 0x10078cf
push 0x1002a40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10078c3
push ebx
push 0x1a
lea ecx, [ebp - 0x214]
push ecx
push ebx
call eax
cmp eax, 1
jne 0x10078c3
push 0x900
push ebx
push ebx
push dword [esi + 8]
lea eax, [ebp - 0x424]
push 0x105
push eax
call fcn.01004e49
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax - 0x424], bl
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10078c3
mov dword [ebp - 0x63c], ebx
push dword [ebp - 0x630]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x640], 1
mov dword [ebp - 0x630], ebx
mov eax, 0x1002a10
cmp dword [ebp - 0x63c], ebx
jne 0x10078f1
mov eax, 0x10029d8
push dword [esi + 0x3c]
push eax
push 0x1001808
lea eax, [ebp - 0x62c]
push 0x208
push eax
call fcn.01003faf
add esp, 0x14
test eax, eax
jge 0x1007919
xor eax, eax
jmp 0x1007a8b
lea eax, [ebp - 0x644]
push eax
push 1
push ebx
lea eax, [ebp - 0x62c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 0x1001954
test eax, eax
jne 0x100799c
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x650]
push eax
push ebx
push esi
push dword [ebp - 0x644]
mov dword [ebp - 0x648], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007988
cmp dword [ebp - 0x638], ebx
mov dword [ebp - 0x630], 1
setne al
mov dword [ebp - 0x640], eax
push dword [ebp - 0x644]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x630], ebx
jne 0x10079b6
push dword [ebp - 0x634]
push 1
push esi
push 0x10019ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x640], eax
push dword [ebp - 0x634]
mov esi, 0x100194c
push 0x64
push 0x1001940
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebp - 0x634]
mov dword [ebp - 0x638], eax
push edi
lea eax, [ebp - 0x10c]
push eax
push 0x1001904
push 0x1001930
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
push dword [ebp - 0x634]
lea eax, [ebp - 0x31c]
push edi
push eax
push 0x1001a20
push 0x100197c
push 0x10019ac
call esi
cmp byte [ebp - 0x31c], bl
jne 0x1007a34
push 0x1002998
push dword [0x101135c]
call fcn.0100a43e
pop ecx
pop ecx
jmp 0x1007912
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x31c]
push eax
push dword [ebp - 0x63c]
lea esi, [edi + 0x58]
push dword [edi]
mov ecx, esi
call dword [sym.imp.cmutil.dll_public:_long_int___thiscall_CmLogFile::Init_struct_HINSTANCE_____int__char_const__]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x638]
mov ecx, esi
push dword [ebp - 0x640]
call dword [sym.imp.cmutil.dll_public:_long_int___thiscall_CmLogFile::SetParams_int__unsigned_long_int__char_const__]
mov ecx, esi
cmp dword [edi + 0x94], ebx
je 0x1007a82
push ebx
call dword [sym.imp.cmutil.dll_public:_long_int___thiscall_CmLogFile::Start_int_]
jmp 0x1007a88
call dword [sym.imp.cmutil.dll_public:_long_int___thiscall_CmLogFile::Stop_void_]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010096ed
leave
ret 4