Function at 0x40be47
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dd9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x10]
call fcn.0041ce2e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.0041ce2e
mov byte [ebp - 4], 1
lea eax, [ebp - 0x254]
push eax
call fcn.004044d0
add esp, 4
mov dword [ebp - 0x27c], eax
mov ecx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x280]
mov eax, dword [edx]
push eax
push 0x424934
lea ecx, [ebp - 0x24c]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push pe_nt_image_headers32
mov edx, dword [ebp - 0x278]
add edx, 0x60
push edx
push 0x425680
push 0x424944
push 0x424948
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 0x278]
add eax, 0x160
push eax
push 0x425684
push str.PATH
push str.DOWNLOAD
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov ecx, dword [ebp - 0x278]
add ecx, 0x368
push ecx
push 0x425688
push 0x424968
push 0x42496c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov edx, dword [ebp - 0x278]
add edx, 0x388
push edx
push 0x42568c
push 0x424974
push 0x424978
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov eax, dword [ebp - 0x278]
add eax, 0x3a8
push eax
push 0x425690
push 0x424980
push 0x424984
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov ecx, dword [ebp - 0x278]
add ecx, 0x3c8
push ecx
push 0x425694
push str.TABLE
push str.ODBC
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push pe_nt_image_headers32
mov edx, dword [ebp - 0x278]
add edx, 0x260
push edx
push 0x425698
push 0x42499c
push 0x4249ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0
push 0x4249bc
push 0x4249c4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x40c], eax
mov edx, dword [ebp - 0x278]
add edx, 0x60
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
je 0x40c090
mov eax, dword [ebp - 0x278]
add eax, 0x160
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jne 0x40c0c3
mov dword [ebp - 0x258], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x258]
jmp 0x40c530
mov ecx, dword [ebp - 0x278]
add ecx, 0x368
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
je 0x40c126
mov edx, dword [ebp - 0x278]
add edx, 0x388
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
je 0x40c126
mov eax, dword [ebp - 0x278]
add eax, 0x3a8
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
je 0x40c126
mov ecx, dword [ebp - 0x278]
add ecx, 0x3c8
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jne 0x40c159
mov dword [ebp - 0x25c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x25c]
jmp 0x40c530
mov edx, dword [ebp - 0x278]
cmp dword [edx + 0x40c], 0
jg 0x40c19b
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x260]
jmp 0x40c530
push 0x14
push 0
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
lea ecx, [ebp - 0x248]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], 0
push 0x14
mov ecx, dword [ebp - 0x278]
add ecx, 0x3fc
call fcn.00410330
mov dword [ebp - 0x22c], 0
jmp 0x40c1f9
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [eax + 0x40c]
jge 0x40c317
push 0x2a
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x268], 0
je 0x40c241
mov ecx, dword [ebp - 0x268]
call fcn.0040c8c0
mov dword [ebp - 0x284], eax
jmp 0x40c24b
mov dword [ebp - 0x284], 0
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x264], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x22c]
push ecx
push str.SERVER__02d
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x22c]
push eax
push str.NAME__02d
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov edx, dword [ebp - 0x230]
push edx
push 0x42569c
lea eax, [ebp - 0x224]
push eax
push 0x4249e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0x20
mov ecx, dword [ebp - 0x230]
add ecx, 0x14
push ecx
push 0x4256a0
lea edx, [ebp - 0x248]
push edx
push str.SERVER_LIST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x278]
add ecx, 0x3fc
call fcn.0040ca90
jmp 0x40c1ea
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0
push str.COUNT
push 0x424a08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x410], eax
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0xff
mov edx, dword [ebp - 0x278]
add edx, 0x424
push edx
push 0x4256a4
push str.WORLD_NAME
push 0x424a24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xff
push 0
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xff
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x250], 0
push 0x14
mov ecx, dword [ebp - 0x278]
add ecx, 0x414
call fcn.00410330
mov dword [ebp - 0x228], 0
jmp 0x40c3d8
mov edx, dword [ebp - 0x228]
add edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [eax + 0x410]
jge 0x40c502
push 0x1fe
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x270], 0
je 0x40c423
mov ecx, dword [ebp - 0x270]
call fcn.0040c900
mov dword [ebp - 0x288], eax
jmp 0x40c42d
mov dword [ebp - 0x288], 0
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x26c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x228]
push ecx
push str.TITLE__02d
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x228]
push eax
push str.NEWS__02d
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0xff
mov edx, dword [ebp - 0x250]
push edx
push 0x4256a8
lea eax, [ebp - 0x210]
push eax
push 0x424a4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x24c]
call fcn.00417280
push eax
push 0xff
mov ecx, dword [ebp - 0x250]
add ecx, 0xff
push ecx
push 0x4256ac
lea edx, [ebp - 0x110]
push edx
push str.WHAT_IS_NEWS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x278]
add ecx, 0x414
call fcn.0040caf0
jmp 0x40c3c9
mov dword [ebp - 0x274], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret