Function at 0x5043e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abb86
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x608554]
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 ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x258], eax
xor eax, eax
push eax
push 0x5c6930
mov byte [ebp - 0x249], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.004035d0
mov dword [ebp - 4], 0
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
jne 0x50461c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x50458e
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00571054
add esp, 8
push 0x5c8da0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push 0x5c692c
push eax
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 - 0x254], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x250], esi
test esi, esi
je 0x50458e
lea eax, [ebp - 0x218]
push eax
push 0x7fff
push esi
push str.Non_Display_Message
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov eax, esi
cmp word [eax], 0
je 0x50457f
nop dword [eax]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504525
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x230]
call fcn.004035d0
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x230]
push ecx
cmp dword [ebx + 0x10], eax
je 0x50455d
mov ecx, eax
call fcn.00402f40
add dword [ebx + 0xc], 0x18
jmp 0x504566
push eax
lea ecx, [ebx + 8]
call fcn.00478930
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x504520
mov eax, dword [ebp - 0x250]
push eax
push 0
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 7
xor eax, eax
mov dword [ebp - 0x238], 0
push str.MSG_END
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.004035d0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 8]
call fcn.00402c30
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x504614
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50460a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5046d6
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
je 0x50466e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x504645
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x504636
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x230]
push eax
call fcn.004035d0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x258]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x5046a8
add esi, 0x18
cmp esi, dword [ebx + 0xc]
jne 0x504622
mov bl, byte [ebp - 0x249]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x5046b6
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5046ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5046db
jmp 0x5046ac
xor bl, bl
jmp 0x504674
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov al, bl
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.0056d977
mov esp, ebp
pop ebp
ret 4
call fcn.00574908
call fcn.00574908
int3