Function at 0x401190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403736
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x406008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.common
lea ecx, [ebp - 0x12c]
call fcn.00401c60
push str..cfg.ini
push 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
push 0x4041f8
cmovae eax, dword [ebp - 0x12c]
push str.connLimit
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x148]
call fcn.00401c60
mov byte [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x134], 0x10
lea esi, [ebp - 0x148]
mov edi, eax
lea eax, [ebp - 0x130]
cmovae esi, dword [ebp - 0x148]
push 0xa
push eax
push esi
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
cmp esi, dword [ebp - 0x130]
jne 0x40126d
push str.invalid_stoi_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
cmp dword [edi], 0x22
jne 0x40127d
push str.stoi_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x134]
mov dword [0x406474], eax
cmp ecx, 0x10
jb 0x4012c2
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4012b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4012b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402c39
add esp, 8
push str..cfg.ini
push 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
push 0x4041f8
cmovae eax, dword [ebp - 0x12c]
push str.refreshSeconds
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x160]
call fcn.00401c60
mov byte [ebp - 4], 5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x14c], 0x10
lea esi, [ebp - 0x160]
mov edi, eax
lea eax, [ebp - 0x130]
cmovae esi, dword [ebp - 0x160]
push 0xa
push eax
push esi
mov dword [edi], 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
cmp esi, dword [ebp - 0x130]
jne 0x401383
push str.invalid_stoi_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
mov dword [0x406474], 0x1e
mov eax, 0x40136e
ret
cmp dword [edi], 0x22
jne 0x401393
push str.stoi_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14c]
mov dword [0x406470], eax
cmp ecx, 0x10
jb 0x4013d8
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4013ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013ce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402c39
add esp, 8
push str..cfg.ini
push 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
push 0x4041f8
cmovae eax, dword [ebp - 0x12c]
push str.ServerName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401420
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, 0x406030
call fcn.00401d70
push str..cfg.ini
push pe_nt_image_headers32
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
push ecx
mov byte [ebp - 4], 9
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
push 0x4041f8
cmovae eax, dword [ebp - 0x12c]
push str.Copyright
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401485
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, 0x406018
call fcn.00401d70
mov ecx, dword [ebp - 0x118]
cmp ecx, 0x10
jb 0x40156e
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401564
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401564
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [0x406470], 1
mov eax, 0x4014ee
ret
push ecx
push edx
call fcn.00402c39
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004029aa
mov esp, ebp
pop ebp
ret