Function at 0x10026400
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038ef0
mov eax, dword fs:[0]
push eax
sub esp, 0xbbc
mov eax, dword [0x1004f450]
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 - 0x4d2]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x4d4], ax
call fcn.1002f900
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x976]
xor edx, edx
push ecx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x978], ax
call fcn.1002f900
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x236]
push eax
mov word [ebp - 0x238], dx
call fcn.1002f900
xor eax, eax
xor edx, edx
push 0x29a
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
push edx
lea eax, [ebp - 0x76e]
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
mov word [ebp - 0x770], dx
call fcn.1002f900
mov edx, dword [0x10052048]
add esp, 0x30
push 0x14e
lea ecx, [ebp - 0x770]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10026786
push 5
lea eax, [ebp - 0x2c]
push eax
push 0x40
lea ecx, [ebp - 0x238]
push ecx
push 0x104
lea edx, [ebp - 0x978]
push edx
push 5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x770]
push ecx
call fcn.10029441
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.UtilDbg.ini
lea edx, [ebp - 0x978]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4d4]
push str._s_s_s
push ecx
call esi
add esp, 0x38
lea edx, [ebp - 0xbc8]
push edx
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10026786
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x1b0]
push str._s_s
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x10
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0xac]
push edx
push 0x1003e860
lea eax, [ebp - 0x1b0]
push eax
push str.DEBUG
call edi
lea eax, [ebp - 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100265a5
sub eax, edx
sar eax, 1
jne 0x100265f5
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0xac]
push edx
push 0x1003e860
push str.DEFAULT
push str.DEBUG
call edi
lea eax, [ebp - 0xac]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100265e0
sub eax, edx
sar eax, 1
je 0x10026786
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0x12c]
push ecx
push 0x1003e860
push str.DEBUG
lea edx, [ebp - 0xac]
push edx
call edi
lea eax, [ebp - 0x12c]
push 0x10049194
push eax
call fcn.10029a7f
add esp, 8
test eax, eax
jne 0x10026786
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0x12c]
push edx
push 0x1003e860
push 0x1004919c
lea eax, [ebp - 0xac]
mov ebx, 1
push eax
mov byte [0x10052040], bl
call edi
lea ecx, [ebp - 0x12c]
push 0x10049194
push ecx
call fcn.10029a7f
add esp, 8
test eax, eax
jne 0x10026722
lea edx, [ebp - 0x4d4]
push edx
push 0x45
lea eax, [ebp - 0x1b8]
push eax
push 0x1003e860
push str.LOGFILE
lea ecx, [ebp - 0xac]
push ecx
mov byte [0x10052041], bl
call edi
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100266b0
sub eax, edx
sar eax, 1
lea eax, [ebp - 0x770]
je 0x100266de
lea edx, [ebp - 0x1b8]
push edx
push 0x14e
push eax
call fcn.100296af
add esp, 0xc
jmp 0x100266f9
push str.UtilDbg.txt
lea ecx, [ebp - 0x978]
push ecx
lea edx, [ebp - 0x20]
push edx
push str._s_s_s
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x770]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10026702
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x770]
mov esi, 0x10051188
call fcn.10001a60
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0x12c]
push edx
push 0x1003e860
push str.OUTPUTDBGSTR
lea eax, [ebp - 0xac]
push eax
call edi
lea ecx, [ebp - 0x12c]
push 0x10049194
push ecx
call fcn.10029a7f
add esp, 8
test eax, eax
jne 0x10026763
mov byte [0x10052042], 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 0x10026786
mov dword [0x10050488], 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.10028eba
mov esp, ebp
pop ebp
ret