Function at 0x408300
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46fc18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x48fb24]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [0x491f50]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea edx, [esp + 0x40]
push 0x10
push edx
push 0x491f08
push str.ServerIP
push str.MonitorServer
mov dword [esp + 0x160], 0
call esi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push 0x48b480
push ecx
call fcn.00461a66
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00461b07
lea ecx, [esp + 0x10]
call fcn.00461abb
mov edx, dword [esp + 0x10]
push 0x491f08
push edx
call fcn.0044bf3e
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 8
test eax, eax
jne 0x4083b6
mov eax, dword [0x491f50]
push eax
push 0x491f08
push str.ServerIP
push str.MonitorServer
call ebx
mov ecx, dword [0x491f50]
lea edx, [esp + 0x3c]
push ecx
push 0x10
push edx
push 0x491f08
push str.ServerPort
push str.MonitorServer
call esi
lea eax, [esp + 0x3c]
lea esi, [edi + 0x380]
push eax
push 0x48b480
push esi
call fcn.00461a66
add esp, 0xc
mov ecx, esi
call fcn.00461b07
mov ecx, esi
call fcn.00461abb
mov eax, dword [esi]
push 0x491f08
push eax
call fcn.0044bf3e
add esp, 8
test eax, eax
jne 0x408428
mov ecx, dword [0x491f50]
push ecx
push 0x491f08
push str.ServerPort
push str.MonitorServer
call ebx
mov edx, dword [esp + 0x10]
push 0x491f08
push edx
call fcn.0044bf3e
add esp, 8
test eax, eax
je 0x408630
mov eax, dword [esi]
push 0x491f08
push eax
call fcn.0044bf3e
add esp, 8
test eax, eax
je 0x408630
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
mov ebx, 2
push 1
push ebx
push eax
push ecx
mov ecx, dword [edi + 0x378]
mov byte [esp + 0x158], 1
call fcn.0040bfe0
test al, al
je 0x4085ef
mov ecx, dword [edi + 0x378]
call fcn.0040c140
test al, al
je 0x4085ef
mov edx, dword [0x48fb24]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push str.Connection_established_with_server:
push ecx
mov byte [esp + 0x154], bl
call fcn.00462ba1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 3
call fcn.004629d1
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], bl
call fcn.00462898
push 0x48bea8
lea ecx, [esp + 0x20]
call fcn.00462906
mov ebp, eax
push esi
lea edx, [esp + 0x28]
push str._on_port
push edx
mov byte [esp + 0x154], 4
call fcn.00462ba1
push ebp
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x150], 5
push eax
call fcn.00462ac7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], 6
call fcn.00462cb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 5
call fcn.00462898
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 4
call fcn.00462898
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], bl
call fcn.00462898
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0x378]
call fcn.0040bdd0
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0046260d
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x154], 7
call fcn.0046260d
push 0
mov byte [esp + 0x154], bl
call fcn.0040a890
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [0x493b80], 6
mov byte [esp + 0x148], 1
call fcn.00462898
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.00462898
xor eax, eax
jmp 0x408649
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._Error__Connect_to_Monitor_Server_Fail__
call fcn.00462906
mov ecx, edi
call fcn.00403ee0
mov edi, dword [edi + 0x378]
push 0
push 0x10
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.00462898
xor eax, eax
jmp 0x408649
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.00462898
mov eax, 1
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret