Function at 0x100279a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042340
mov eax, dword fs:[0]
push eax
sub esp, 0xe58
mov eax, dword [0x100582a0]
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 eax, eax
push 0x29a
push eax
lea ecx, [ebp - 0x4d2]
push ecx
mov dword [ebp - 4], 0
mov word [ebp - 0x4d4], ax
call fcn.1002b6b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x6da]
xor edx, edx
push ecx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x6dc], ax
call fcn.1002b6b0
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x236]
push eax
mov word [ebp - 0x238], dx
call fcn.1002b6b0
xor eax, eax
xor ecx, ecx
add esp, 0x24
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
test esi, esi
je 0x10027a7c
push 0x29c
push eax
lea edx, [ebp - 0x4d4]
push edx
call fcn.1002b6b0
push esi
lea eax, [ebp - 0x4d4]
push 0x14e
push eax
call fcn.1002b64d
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x10027b0e
xor ecx, ecx
push 0x29a
push ecx
lea edx, [ebp - 0xc12]
push edx
mov word [ebp - 0xc14], cx
call fcn.1002b6b0
add esp, 0xc
call fcn.10029990
push 0x14e
lea ecx, [ebp - 0xc14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10027d67
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 - 0xc14]
push eax
call fcn.1002b72a
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
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 edi
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 0x10027d67
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 edi
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 0x10043394
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
test cx, cx
jne 0x10027b80
sub eax, edx
sar eax, 1
jne 0x10027bd5
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0xac]
push ecx
push 0x10043394
push str.DEFAULT
push str.DEBUG
call esi
lea eax, [ebp - 0xac]
lea edx, [eax + 2]
jmp 0x10027bc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027bc0
sub eax, edx
sar eax, 1
je 0x10027d67
lea edx, [ebp - 0x4d4]
push edx
push 0x40
lea eax, [ebp - 0x12c]
push eax
push 0x10043394
push str.DEBUG
lea ecx, [ebp - 0xac]
push ecx
call esi
lea edx, [ebp - 0x12c]
push 0x1004db1c
push edx
call fcn.1002bc58
add esp, 8
test eax, eax
jne 0x10027d67
lea eax, [ebp - 0x4d4]
push eax
push 0x40
lea ecx, [ebp - 0x12c]
push ecx
push 0x10043394
push 0x1004db14
lea edx, [ebp - 0xac]
mov ebx, 1
push edx
mov byte [0x1005959c], bl
call esi
lea eax, [ebp - 0x12c]
push 0x1004db1c
push eax
call fcn.1002bc58
add esp, 8
test eax, eax
jne 0x10027d03
lea ecx, [ebp - 0x4d4]
push ecx
push 0x45
lea edx, [ebp - 0x1b8]
push edx
push 0x10043394
push str.LOGFILE
lea eax, [ebp - 0xac]
push eax
mov byte [0x1005959d], bl
call esi
lea eax, [ebp - 0x1b8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027c90
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x978]
je 0x10027cbe
lea ecx, [ebp - 0x1b8]
push ecx
push 0x14e
push edx
call fcn.1002b64d
add esp, 0xc
jmp 0x10027cd9
push str.UtilDbg.txt
lea eax, [ebp - 0x6dc]
push eax
lea ecx, [ebp - 0x20]
push ecx
push str._s_s_s
push edx
call edi
add esp, 0x14
lea eax, [ebp - 0x978]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10027ce2
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x978]
push eax
mov ecx, 0x10058034
call fcn.10001820
lea ecx, [ebp - 0x4d4]
push ecx
push 0x40
lea edx, [ebp - 0x12c]
push edx
push 0x10043394
push str.OUTPUTDBGSTR
lea eax, [ebp - 0xac]
push eax
call esi
lea ecx, [ebp - 0x12c]
push 0x1004db1c
push ecx
call fcn.1002bc58
add esp, 8
test eax, eax
jne 0x10027d44
mov byte [0x1005959e], 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 0x10027d67
mov dword [0x10058030], 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.1002b571
mov esp, ebp
pop ebp
ret