Function at 0x54bf40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afb30
mov eax, dword fs:[0]
push eax
sub esp, 0xbc0
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x29c
lea eax, [ebp - 0x4d4]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x978]
mov word [ebp - 0x18], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00571c00
push 0x80
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00571c00
push 0x29c
lea eax, [ebp - 0x770]
mov word [ebp - 0x24], 0
xorps xmm0, xmm0
push 0
push eax
movq qword [ebp - 0x2c], xmm0
call fcn.00571c00
add esp, 0x30
lea eax, [ebp - 0x770]
push 0x14e
push eax
push dword [0x618644]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x54c33b
push 5
lea eax, [ebp - 0x2c]
push eax
push 0x40
lea eax, [ebp - 0x238]
push eax
push 0x104
lea eax, [ebp - 0x978]
push eax
push 5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x770]
push eax
call fcn.00580f0a
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x978]
push str.UtilDbg.ini
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x4d4]
push 0x5d09a4
push eax
call edi
add esp, 0x38
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x54c33b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.00571c00
push 0x80
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.00571c00
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x1b0]
push 0x5c70f4
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4d4]
add esp, 0x28
push eax
push 0x40
lea eax, [ebp - 0xac]
push eax
push 0x5c6930
lea eax, [ebp - 0x1b0]
push eax
push str.DEBUG
call esi
lea ecx, [ebp - 0xac]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c0f0
sub ecx, edx
sar ecx, 1
jne 0x54c145
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea eax, [ebp - 0xac]
push eax
push 0x5c6930
push str.DEFAULT
push str.DEBUG
call esi
lea ecx, [ebp - 0xac]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c130
sub ecx, edx
sar ecx, 1
je 0x54c33b
push 0x80
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea eax, [ebp - 0x12c]
push eax
push 0x5c6930
push str.DEBUG
lea eax, [ebp - 0xac]
push eax
call esi
lea eax, [ebp - 0x12c]
push 0x5ca984
push eax
call fcn.00574f99
add esp, 8
test eax, eax
jne 0x54c33b
lea eax, [ebp - 0x4d4]
mov byte [0x618648], 1
push eax
push 0x40
lea eax, [ebp - 0x12c]
push eax
push 0x5c6930
push 0x5d0544
lea eax, [ebp - 0xac]
push eax
call esi
lea eax, [ebp - 0x12c]
push 0x5ca984
push eax
call fcn.00574f99
add esp, 8
test eax, eax
jne 0x54c2c1
push 0x29c
push eax
lea eax, [ebp - 0x770]
mov byte [0x618649], 1
push eax
call fcn.00571c00
push 0x8a
lea eax, [ebp - 0x1b8]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea eax, [ebp - 0x4d4]
push eax
push 0x45
lea eax, [ebp - 0x1b8]
push eax
push 0x5c6930
push str.LOGFILE
lea eax, [ebp - 0xac]
push eax
call esi
lea ecx, [ebp - 0x1b8]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c240
sub ecx, edx
sar ecx, 1
je 0x54c26e
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x770]
push 0x14e
push eax
call fcn.005746e6
add esp, 0xc
jmp 0x54c28f
push str.UtilDbg.txt
lea eax, [ebp - 0x978]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x770]
push 0x5d09a4
push eax
call edi
add esp, 0x14
lea ecx, [ebp - 0x770]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54c2a0
sub ecx, edx
lea eax, [ebp - 0x770]
sar ecx, 1
push ecx
push eax
mov ecx, 0x611b38
call fcn.004035d0
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea eax, [ebp - 0x12c]
push eax
push 0x5c6930
push str.OUTPUTDBGSTR
lea eax, [ebp - 0xac]
push eax
call esi
lea eax, [ebp - 0x12c]
push 0x5ca984
push eax
call fcn.00574f99
movzx ecx, byte [0x61864a]
add esp, 8
test eax, eax
mov edx, 1
lea eax, [ebp - 0x4d4]
cmove ecx, edx
push eax
push edx
push str.LEVEL
lea eax, [ebp - 0xac]
mov byte [0x61864a], cl
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [0x611b50]
cmp eax, 1
cmovg ecx, eax
mov dword [0x611b50], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret