Function at 0x478c70
Capabilities:
Check for peb beingdebugged flag
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58c186
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x60], ax
call fcn.0052e300
add esp, 0xc
push 0x104
lea edx, [esp + 0x58]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x54]
push 0x5c
push eax
call fcn.00527ab0
xor ecx, ecx
mov word [eax + 2], cx
add esp, 8
xor edx, edx
lea eax, [esp + 0x54]
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478d07
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea esi, [esp + 0x24]
call fcn.00406150
push 0xa
push str.config.ini
mov eax, esi
mov dword [esp + 0x478], ebx
call fcn.00404070
mov eax, dword [esp + 0x20]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jae 0x478d4d
lea eax, [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0x3e9
push str.Lang
push str.Main
call edi
cmp eax, 0x3e9
jne 0x478ede
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x478d7e
lea eax, [esp + 0x20]
push eax
push 1
push str.news
push str.Main
call edi
push 0x206
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x262]
xor edx, edx
push ebx
push eax
mov word [esp + 0x268], dx
call fcn.0052e300
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x34], ebp
jae 0x478dbf
lea eax, [esp + 0x20]
push eax
push 0x104
lea ecx, [esp + 0x264]
push ecx
push 0x59b2fc
push str.UserPath
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor edx, edx
lea eax, [esp + 0x25c]
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x478e00
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x260]
push eax
lea esi, [esp + 0x40]
call fcn.00406150
push 0xd
push str.useruser.ini
mov eax, esi
mov byte [esp + 0x478], 1
call fcn.00404070
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x478e45
lea eax, [esp + 0x3c]
push eax
push ebx
push str.level
push str.UserInfo
call edi
mov ebx, dword [esp + 0x3c]
mov esi, eax
cmp dword [esp + 0x50], ebp
jae 0x478e63
lea ebx, [esp + 0x3c]
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x34], ebp
jae 0x478e71
lea edi, [esp + 0x20]
mov ecx, dword [0x5ef5f4]
test ecx, ecx
jne 0x478e80
call fcn.00404b70
push ebx
push edi
push str.FilePath__s___s_
call fcn.0047b0e0
add esp, 0xc
cmp esi, 1
je 0x478eb4
cmp dword [esp + 0x18], 0
je 0x478eb4
lea ecx, [esp + 0x38]
call fcn.00406300
lea ecx, [esp + 0x1c]
call fcn.00406300
mov eax, 1
jmp 0x478ef3
cmp dword [esp + 0x50], ebp
jb 0x478ec7
mov edx, dword [esp + 0x3c]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
cmp dword [esp + 0x34], ebp
jb 0x478ef1
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005273b8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.005273c3
add esp, 0x460
ret