Function at 0x40c8f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x420744
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x8a4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8b4]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], bx
je 0x40cbbd
push str.ServerFile
lea ecx, [esp + 0x5c]
xor ebp, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x8ac], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x3fe
lea ecx, [esp + 0x4a2]
push ebx
mov byte [esp + 0x8b4], 1
push ecx
mov word [esp + 0x4a8], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xa
push 0x200
lea edx, [esp + 0x4a4]
push edx
push ebx
call dword [sym.imp.MSVCR80.dll__itow_s]
add esp, 0x10
cmp eax, ebx
jne 0x40cb97
jmp 0x40c9c4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call dword [0x42162c]
lea ecx, [esp + 0x49c]
push ecx
lea ecx, [esp + 0x40]
call dword [0x421624]
mov edx, dword [0x4218a4]
mov ecx, dword [str.none]
mov di, word [0x4218a8]
xor eax, eax
push 0x3f6
mov dword [esp + 0x7c], edx
mov dword [esp + 0xa4], edx
lea edx, [esp + 0xaa]
push ebx
push edx
mov dword [esp + 0x80], ecx
mov word [esp + 0x88], di
mov dword [esp + 0x8a], eax
mov dword [esp + 0x8e], eax
mov dword [esp + 0x92], eax
mov dword [esp + 0x96], eax
mov dword [esp + 0x9a], eax
mov dword [esp + 0x9e], eax
mov dword [esp + 0xa2], eax
mov word [esp + 0xa6], ax
mov dword [esp + 0xa8], ecx
mov word [esp + 0xb0], di
call sub.MSVCR80.dll_memset
mov ecx, 8
add esp, 0xc
cmp dword [esi + 0x18], ecx
jb 0x40ca81
mov eax, dword [esi + 4]
jmp 0x40ca84
lea eax, [esi + 4]
cmp dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x40]
jae 0x40ca92
lea ecx, [esp + 0x40]
push eax
push 0x200
lea eax, [esp + 0xa4]
push eax
lea edx, [esp + 0x80]
push edx
push ecx
push str.ServerFiles
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x74]
lea eax, [esp + 0x9c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cae6
cmp dx, bx
je 0x40cae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cae6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cac0
xor eax, eax
jmp 0x40caeb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40caf7
cmp ebp, ebx
je 0x40cb97
lea ecx, [esp + 0x74]
lea eax, [esp + 0x9c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cb28
cmp dx, bx
je 0x40cb24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cb28
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40cb02
xor eax, eax
jmp 0x40cb2d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40cb39
cmp ebp, ebx
jne 0x40cbc1
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x8b0], 2
call fcn.0040d290
lea ecx, [esp + 0x20]
mov byte [esp + 0x8ac], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0xa
push 0x200
lea edx, [esp + 0x4a4]
push edx
add ebp, 1
push ebp
call dword [sym.imp.MSVCR80.dll__itow_s]
add esp, 0x10
cmp eax, ebx
je 0x40c9c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8ac], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8ac], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x40cbe9
lea ecx, [esp + 0x3c]
mov byte [esp + 0x8ac], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x58]
mov dword [esp + 0x8ac], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x8a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x89c
ret 4