Function at 0x45bb60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5826c0
mov eax, dword fs:[0]
push eax
sub esp, 0xbcc
mov eax, dword [0x5eb770]
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
xor eax, eax
push 0x29a
push eax
lea ecx, [ebp - 0x4de]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x4e0], ax
call fcn.0055ca80
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x986]
xor edx, edx
push ecx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x988], ax
call fcn.0055ca80
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x23e]
push eax
mov word [ebp - 0x240], dx
call fcn.0055ca80
xor eax, eax
xor edx, edx
push 0x29a
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
push edx
lea eax, [ebp - 0x77e]
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
mov word [ebp - 0x780], dx
call fcn.0055ca80
mov edx, dword [0x60a368]
add esp, 0x30
push 0x14e
lea ecx, [ebp - 0x780]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45bee6
push 5
lea eax, [ebp - 0x2c]
push eax
push 0x40
lea ecx, [ebp - 0x240]
push ecx
push 0x104
lea edx, [ebp - 0x988]
push edx
push 5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x780]
push ecx
call fcn.00557258
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.UtilDbg.ini
lea edx, [ebp - 0x988]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4e0]
push str._s_s_s
push ecx
call esi
add esp, 0x38
lea edx, [ebp - 0xbd8]
push edx
lea eax, [ebp - 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x45bee6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x1b8]
push 0x5b7940
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea ecx, [ebp - 0x4e0]
push ecx
push 0x40
lea edx, [ebp - 0xb0]
push edx
push 0x5b69a4
lea eax, [ebp - 0x1b8]
push eax
push str.DEBUG
call edi
lea eax, [ebp - 0xb0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45bd05
sub eax, edx
sar eax, 1
jne 0x45bd55
lea ecx, [ebp - 0x4e0]
push ecx
push 0x40
lea edx, [ebp - 0xb0]
push edx
push 0x5b69a4
push str.DEFAULT
push str.DEBUG
call edi
lea eax, [ebp - 0xb0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45bd40
sub eax, edx
sar eax, 1
je 0x45bee6
lea eax, [ebp - 0x4e0]
push eax
push 0x40
lea ecx, [ebp - 0x130]
push ecx
push 0x5b69a4
push str.DEBUG
lea edx, [ebp - 0xb0]
push edx
call edi
lea eax, [ebp - 0x130]
push 0x5bbf14
push eax
call fcn.00556d01
add esp, 8
test eax, eax
jne 0x45bee6
lea ecx, [ebp - 0x4e0]
push ecx
push 0x40
lea edx, [ebp - 0x130]
push edx
push 0x5b69a4
push 0x5c12b8
lea eax, [ebp - 0xb0]
mov ebx, 1
push eax
mov byte [0x60a364], bl
call edi
lea ecx, [ebp - 0x130]
push 0x5bbf14
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
jne 0x45be82
lea edx, [ebp - 0x4e0]
push edx
push 0x45
lea eax, [ebp - 0x1c0]
push eax
push 0x5b69a4
push str.LOGFILE
lea ecx, [ebp - 0xb0]
push ecx
mov byte [0x60a365], bl
call edi
lea eax, [ebp - 0x1c0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45be10
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x780]
je 0x45be3e
lea edx, [ebp - 0x1c0]
push edx
push 0x14e
push eax
call fcn.005579b2
add esp, 0xc
jmp 0x45be59
push str.UtilDbg.txt
lea ecx, [ebp - 0x988]
push ecx
lea edx, [ebp - 0x20]
push edx
push str._s_s_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x780]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45be62
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x780]
mov esi, 0x603380
call fcn.00401d90
lea ecx, [ebp - 0x4e0]
push ecx
push 0x40
lea edx, [ebp - 0x130]
push edx
push 0x5b69a4
push str.OUTPUTDBGSTR
lea eax, [ebp - 0xb0]
push eax
call edi
lea ecx, [ebp - 0x130]
push 0x5bbf14
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
jne 0x45bec3
mov byte [0x60a366], bl
lea edx, [ebp - 0x4e0]
push edx
push ebx
push str.LEVEL
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jle 0x45bee6
mov dword [0x5ed938], eax
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.0055649d
mov esp, ebp
pop ebp
ret