Function at 0x10017020
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1008c300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov edi, 0x100938a8
mov ebp, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
lea eax, [ebp + 0xd0]
push 1
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], ebx
call fcn.10041780
lea esi, [ebp + 0x100]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x44]
mov byte [esp + 0x8c], 2
cmp eax, ebx
jne 0x1001709f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x20]
call fcn.100417a0
jmp 0x10017313
lea ecx, [esi + 0x1c]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x3c], ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], edx
call fcn.100185e0
cmp dword [esi + 0x44], ebx
jne 0x100170d7
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
mov byte [esp + 0x90], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [ebp + 0xf0]
call fcn.100180f0
mov ecx, dword [ebp + 0xf4]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jne 0x10017117
lea ecx, [esp + 0x20]
call fcn.100417a0
jmp 0x10017313
mov eax, dword [eax + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
call fcn.1005ab10
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x8c], 0
call fcn.100417a0
mov ecx, dword [0x100abca4]
cmp ecx, ebx
jne 0x100171bb
push 1
push 0x100ac700
lea ecx, [esp + 0x28]
call fcn.10041780
mov eax, dword [0x100abca4]
mov byte [esp + 0x8c], 3
cmp eax, ebx
jne 0x100171a4
mov al, byte [0x100ac71c]
test al, 1
jne 0x1001719a
mov dl, al
mov ecx, 0x100ac720
or dl, 1
mov byte [0x100ac71c], dl
call fcn.100450f0
push 0x10017670
call fcn.10088ee1
add esp, 4
mov dword [0x100abca4], 0x100ac720
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 0
call fcn.100417a0
mov ecx, dword [0x100abca4]
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
call dword [edx + 4]
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x100171d1
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [str.ConnectIPIntervalMillis]
mov edx, dword [str.TCPSetting]
push eax
push 0xc8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x40]
call fcn.10041850
cmp esi, ebx
mov byte [esp + 0x8c], 4
jne 0x10017214
xor esi, esi
jmp 0x10017219
mov esi, dword [esi + 8]
mov ebx, esi
mov eax, dword [esp + 0x14]
lea edi, [ebp + 4]
push eax
mov ecx, edi
call fcn.1003c770
mov ecx, dword [esi + 0x10]
push eax
push ecx
push ebx
lea ecx, [esp + 0x50]
call fcn.10041df0
mov ecx, edi
mov esi, eax
call fcn.1003c6b0
test al, al
je 0x100172a0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x30]
push edx
push str.F:SCVICELIBIceProviderHappyEyeballsConnectThread.cpp
mov dword [esp + 0x1c], 0xa2
call fcn.10038570
push 0x100a56c0
push 0xb
push eax
mov byte [esp + 0x98], 5
call fcn.100386d0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 4
call fcn.100385c0
cmp esi, 0xffffffff
je 0x100172a0
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x14c]
push eax
push esi
call fcn.1002b310
lea ecx, [esp + 0x40]
mov byte [esp + 0x8c], 0
call fcn.10041be0
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x8c], 0xffffffff
test esi, esi
je 0x10017313
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call ebx
test eax, eax
jne 0x10017313
mov edi, dword [esi + 8]
test edi, edi
je 0x100172f9
mov ecx, edi
call fcn.100174d0
push edi
call fcn.10088e50
add esp, 4
lea ecx, [esi + 4]
mov dword [esi + 8], 0
push ecx
call ebx
test eax, eax
jne 0x10017313
push esi
call fcn.10088e50
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 8