Function at 0x4a4780
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a456b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.CBaseDlgCtrl::BtnLicenseAgreementDebugSilentLog
lea ecx, [ebp - 0x250]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4a4806
test byte [ecx + 0x1c], 1
je 0x4a4806
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d4778
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x18
call fcn.00401840
add esp, 0xc
push str.BtnLicenseAgreementDebugSilentLog
push str.Action_start__s.
push 0x6185b4
call fcn.0048a7e0
add esp, 0xc
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x800
push 8
push eax
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x260], edi
test edi, edi
je 0x4a49d9
mov ecx, dword [0x6184f0]
push edi
push str.TraceFile
mov byte [ebp - 0x251], bl
mov ecx, dword [ecx + 0x1c]
call fcn.004f65f0
push 0x5c6930
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4a487f
mov byte [ebp - 0x251], 1
jmp 0x4a4976
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x4a48ec
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00571054
add esp, 8
push 0x5c8da0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c692c
lea eax, [ebp - 0x218]
push eax
call esi
push str.DebugSettings.ini
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push 0x400
push edi
push str.SilentDebug.log
push str.LogFilePath
push str.SilentLog_Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x5c6930
push edi
call ebx
test eax, eax
je 0x4a492c
push str.SilentDebug.log
push edi
call ebx
test eax, eax
jne 0x4a4965
push 0x400
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4a4965
push 0x5c
push edi
call fcn.00571054
add esp, 8
push 0x5c8da0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c692c
push edi
call esi
push str.SilentDebug.log
push edi
call esi
push edi
mov ecx, 0x6185b4
call fcn.0048a430
mov ebx, eax
test ebx, ebx
jne 0x4a49be
mov ecx, dword [0x6184fc]
mov dword [ebp - 0x25c], ecx
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
cmp esi, eax
je 0x4a49ad
mov edi, eax
nop
mov ecx, esi
call fcn.00403570
add esi, 0x18
cmp esi, edi
jne 0x4a4990
mov ecx, dword [ebp - 0x25c]
mov edi, dword [ebp - 0x260]
mov esi, dword [ecx + 8]
mov dword [ecx + 0xc], esi
call fcn.00504eb0
cmp byte [ebp - 0x251], 0
jne 0x4a49c8
mov ecx, 0x6185b4
call fcn.0048a720
push edi
push 0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a49e8
mov ebx, 0x80010002
mov dword [0x6183ec], 2
push ebx
push str.BtnLicenseAgreementDebugSilentLog
push str.Action_ended__s._Return_value__08x.
push 0x6185b4
call fcn.0048a7e0
add esp, 0x10
mov byte [ebp - 0x24c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4a4a48
test byte [ecx + 0x1c], 1
je 0x4a4a48
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5d4778
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x19
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x250]
call fcn.0040a570
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret