Function at 0x407e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bf16
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5b4450]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x264], eax
xor ecx, ecx
push edi
mov eax, 0x58a8c8
lea esi, [ebp - 0x234]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
call fcn.00405500
mov dword [ebp - 4], edi
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0x18]
lea edi, [ebx + 0x14]
jne 0x408076
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408003
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.00534819
add esp, 8
push 0x58ace4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x58abe4
lea edx, [ebp - 0x218]
push edx
call esi
push str.DebugSettings.ini
lea eax, [ebp - 0x218]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xfffe
push 8
push eax
mov dword [ebp - 0x260], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x25c], esi
test esi, esi
je 0x408003
lea ecx, [ebp - 0x218]
push ecx
push 0x7fff
push esi
push str.Non_Display_Message
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [esi], 0
mov ebx, esi
je 0x407fed
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407fb0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x234]
call fcn.00405500
mov ecx, esi
call fcn.00408280
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x407fa8
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x260]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x258]
xor eax, eax
mov word [ebp - 0x250], ax
push 7
mov eax, str.MSG_END
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
call fcn.00405500
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00408280
mov byte [ebp - 4], 0
cmp dword [ebp - 0x23c], 8
jb 0x408059
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.004401b7
add esp, 4
xor edx, edx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], dx
mov edi, dword [edi]
cmp edi, dword [ebx + 0x18]
je 0x4080cb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00405240
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4080a9
lea eax, [ebp - 0x234]
mov ecx, dword [ebp - 0x264]
push ecx
push eax
call esi
test eax, eax
je 0x4080c1
add edi, 0x1c
cmp edi, dword [ebx + 0x18]
jne 0x408083
jmp 0x4080cb
mov dword [ebp - 0x254], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x220], 8
jb 0x4080ea
mov edx, dword [ebp - 0x234]
push edx
call fcn.004401b7
add esp, 4
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005337cb
mov esp, ebp
pop ebp
ret 4