Function at 0x100342a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052130
mov eax, dword fs:[0]
push eax
sub esp, 0xe5c
mov eax, dword [0x1006b2c8]
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
mov esi, dword [ebp + 8]
xor edi, edi
push 0x29a
lea eax, [ebp - 0x4d2]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x4d4], di
call fcn.100376a0
push 0x206
xor eax, eax
lea ecx, [ebp - 0x6da]
push edi
push ecx
mov word [ebp - 0x20], di
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x6dc], di
call fcn.100376a0
push 0x7e
lea edx, [ebp - 0x236]
push edi
push edx
mov word [ebp - 0x238], di
call fcn.100376a0
xor eax, eax
add esp, 0x24
cmp esi, edi
mov word [ebp - 0x2c], di
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
je 0x1003436c
push 0x29c
lea eax, [ebp - 0x4d4]
push edi
push eax
call fcn.100376a0
push esi
lea ecx, [ebp - 0x4d4]
push 0x14e
push ecx
call fcn.10037627
add esp, 0x18
jmp 0x100343fa
push 0x29a
lea edx, [ebp - 0x976]
push edi
push edx
mov word [ebp - 0x978], di
call fcn.100376a0
add esp, 0xc
call fcn.10036110
push 0x14e
lea ecx, [ebp - 0x978]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10034642
push 5
lea edx, [ebp - 0x2c]
push edx
push 0x40
lea eax, [ebp - 0x238]
push eax
push 0x104
lea ecx, [ebp - 0x6dc]
push ecx
push 5
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x978]
push eax
call fcn.1003771a
push str.UtilDbg.ini
lea ecx, [ebp - 0x6dc]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x4d4]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
lea ecx, [ebp - 0xe64]
push ecx
lea edx, [ebp - 0x4d4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10034642
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x1b0]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0xac]
push ecx
push 0x100533f4
lea edx, [ebp - 0x1b0]
push edx
push str.DEBUG
call esi
lea eax, [ebp - 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10034470
sub eax, edx
sar eax, 1
jne 0x100344c5
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0xac]
push ecx
push 0x100533f4
push str.DEFAULT
push str.DEBUG
call esi
lea eax, [ebp - 0xac]
lea edx, [eax + 2]
jmp 0x100344b0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x100344b0
sub eax, edx
sar eax, 1
je 0x10034642
lea edx, [ebp - 0x4d4]
push edx
push 0x40
lea eax, [ebp - 0x12c]
push eax
push 0x100533f4
push str.DEBUG
lea ecx, [ebp - 0xac]
push ecx
call esi
lea edx, [ebp - 0x12c]
push 0x100607a4
push edx
call fcn.1003803f
add esp, 8
test eax, eax
jne 0x10034642
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0x12c]
push ecx
push 0x100533f4
push 0x1006079c
lea edx, [ebp - 0xac]
mov ebx, 1
push edx
mov byte [0x1006c67c], bl
call esi
lea eax, [ebp - 0x12c]
push 0x100607a4
push eax
call fcn.1003803f
add esp, 8
test eax, eax
jne 0x100345de
lea ecx, [ebp - 0x4d4]
push ecx
push 0x45
lea edx, [ebp - 0x1b8]
push edx
push 0x100533f4
push str.LOGFILE
lea eax, [ebp - 0xac]
push eax
mov byte [0x1006c67d], bl
call esi
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10034580
sub eax, edx
sar eax, 1
lea edx, [ebp - 0xc14]
je 0x100345ae
lea ecx, [ebp - 0x1b8]
push ecx
push 0x14e
push edx
call fcn.10037627
add esp, 0xc
jmp 0x100345cd
push str.UtilDbg.txt
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x20]
push ecx
push str._s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0xc14]
push eax
mov ecx, 0x1006b11c
call fcn.10001930
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0x12c]
push edx
push 0x100533f4
push str.OUTPUTDBGSTR
lea eax, [ebp - 0xac]
push eax
call esi
lea ecx, [ebp - 0x12c]
push 0x100607a4
push ecx
call fcn.1003803f
add esp, 8
test eax, eax
jne 0x1003461f
mov byte [0x1006c67e], bl
lea edx, [ebp - 0x4d4]
push edx
push ebx
push str.LEVEL
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jle 0x10034642
mov dword [0x1006b118], 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.1003754f
mov esp, ebp
pop ebp
ret