Function at 0x4051f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529af6
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x581980]
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
push ebx
mov dword [ebp - 0x4c], ebx
call fcn.004029a0
lea esi, [ebx + 0x35c]
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [esi + 4]
mov dword [ebx], vtable.CNewsClientWnd.0
mov dword [ebx + 0x10], vtable.CNewsClientWnd.1.0
mov dword [ebx + 0x20], vtable.CNewsClientWnd.2.0
mov dword [ebx + 0x24], vtable.CNewsClientWnd.3.0
mov dword [ebx + 0x28], vtable.CNewsClientWnd.4.0
xor ecx, ecx
mov dword [esi], eax
mov word [eax], cx
mov eax, 0xf
mov dword [ebx + 0x414], eax
mov dword [ebx + 0x410], edi
mov byte [ebx + 0x400], cl
mov dword [ebx + 0x434], eax
mov dword [ebx + 0x430], edi
mov byte [ebx + 0x420], cl
mov dword [ebx + 0x450], eax
mov dword [ebx + 0x44c], edi
mov byte [ebx + 0x43c], cl
mov dword [ebx + 0x46c], eax
mov dword [ebx + 0x468], edi
mov byte [ebx + 0x458], cl
mov dword [ebx + 0x488], eax
mov dword [ebx + 0x484], edi
mov byte [ebx + 0x474], cl
mov dword [ebx + 0x4a4], eax
mov dword [ebx + 0x4a0], edi
mov byte [ebx + 0x490], cl
mov dword [ebx + 0x4c0], eax
mov dword [ebx + 0x4bc], edi
mov byte [ebx + 0x4ac], cl
mov dword [ebx + 0x4dc], eax
mov dword [ebx + 0x4d8], edi
mov byte [ebx + 0x4c8], cl
mov ecx, 7
xor edx, edx
mov dword [ebx + 0x534], ecx
mov dword [ebx + 0x530], edi
mov word [ebx + 0x520], dx
xor eax, eax
mov dword [ebx + 0x550], ecx
mov dword [ebx + 0x54c], edi
mov word [ebx + 0x53c], ax
mov dword [ebx + 0x56c], ecx
mov dword [ebx + 0x568], edi
mov word [ebx + 0x558], dx
lea eax, [ebx + 0x574]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edi
mov dword [ebp - 0x54], eax
mov word [eax], dx
lea eax, [ebx + 0x590]
mov dword [eax + 0x14], ecx
xor ecx, ecx
mov dword [eax + 0x10], edi
mov dword [ebp - 0x50], eax
mov word [eax], cx
push 0x5642a0
or eax, 0xffffffff
mov byte [ebp - 4], 9
call fcn.0040a8e0
mov edx, dword [ebp + 8]
mov dword [ebx + 0x3e0], edx
mov eax, 1
mov dword [ebx + 0x4fc], eax
mov dword [ebx + 0x510], eax
push edi
mov eax, 0x5641f8
lea esi, [ebx + 0x53c]
mov dword [ebx + 0x3f4], edi
mov dword [ebx + 0x508], edi
mov dword [ebx + 0x50c], edi
mov dword [ebx + 0x514], edi
call fcn.00403af0
push edi
mov eax, 0x5641f8
lea esi, [ebx + 0x558]
call fcn.00403af0
xor eax, eax
mov word [ebp - 0x48], ax
push 8
mov eax, str.E16F4C7G
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
call fcn.00403af0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x58], esp
mov byte [ebp - 4], 0xa
push edi
mov eax, esi
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
lea ecx, [ebp - 0x2c]
call fcn.00406530
mov edi, eax
lea esi, [ebx + 0x520]
mov byte [ebp - 4], 0xb
call fcn.00402120
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], 8
jb 0x405434
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
call fcn.004599b0
push str.newscfg.ini
mov dword [ebx + 0x500], eax
call fcn.00457950
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00402000
add esp, 0xc
mov esi, dword [ebp - 0x50]
mov edi, eax
mov byte [ebp - 4], 0xc
call fcn.00402120
mov esi, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jb 0x40547e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f287e
add esp, 4
call fcn.00457b10
cmp dword [eax + 0x14], esi
jb 0x40548c
mov ecx, dword [eax]
jmp 0x40548e
mov ecx, eax
lea ebx, [ebp - 0x2c]
call fcn.00458180
mov esi, dword [ebp - 0x54]
mov edi, eax
mov byte [ebp - 4], 0xd
call fcn.00402120
mov ebx, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], ebx
jb 0x4054be
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
mov eax, dword [esi + 0x10]
push 0x5641f8
xor edi, edi
mov ecx, esi
call fcn.00401f90
test eax, eax
jne 0x405537
push 0x208
call fcn.004f1ede
add esp, 4
push 0x104
mov edi, eax
push 0
push edi
call fcn.004f50f0
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x4054fc
mov eax, dword [eax]
push eax
push 0x104
push edi
push 0x5649a0
push 0x56495c
push str.client
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405520
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00403af0
cmp dword [ebp - 0x34], ebx
jb 0x405548
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f287e
add esp, 4
mov eax, dword [ebp - 0x4c]
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.004f2889
mov esp, ebp
pop ebp
ret 4