Function at 0x442fc0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x73c
mov eax, dword [0x48602c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x73c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x73c]
cmp dword [eax + 0x1998], 0
jg 0x442ffe
mov ecx, dword [ebp - 0x73c]
cmp dword [ecx + 0x1984], 0
je 0x44300a
mov dword [ebp - 4], 1
jmp 0x443282
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 0x73c]
mov ecx, dword [eax + 0x19e8]
mov edx, dword [ebp - 0x73c]
mov eax, dword [edx + 0x19e8]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
jne 0x44310b
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.AomeiBR_netGlobal.ini
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call sub.NTHelp.dll_int___cdecl_Help32::FileIsExist_wchar_t__
add esp, 4
test eax, eax
jne 0x4430a3
jmp 0x443282
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x10
lea eax, [ebp - 0x420]
push eax
push 0x47003c
push 0x470040
push 0x470060
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4430f0
jmp 0x443282
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x214], eax
jmp 0x4431da
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call sub.NTHelp.dll_void___cdecl_Help32::GetModuleFilePath_wchar_t__
add esp, 4
push str.Global.ini
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
mov word [ebp - 0x628], 0
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x10
lea ecx, [ebp - 0x628]
push ecx
push 0x470084
push 0x470088
push 0x4700a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4431aa
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x214], eax
jmp 0x4431da
lea eax, [ebp - 0x210]
push eax
push 0x4700b4
push str.TCP_PORT_LISTEN
push str.ABSRV
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.2008
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [ebp - 0x214], eax
push 1
call sub.Amnet.dll_int___cdecl_Amnet::Socket_int_
add esp, 4
mov ecx, dword [ebp - 0x73c]
mov dword [ecx + 0x1998], eax
mov edx, dword [ebp - 0x73c]
cmp dword [edx + 0x1998], 0
jle 0x44327a
mov dword [ebp - 0x738], 0
push 0x108
push 0
lea eax, [ebp - 0x734]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x738], 0x6a
mov dword [ebp - 0x734], 3
mov dword [ebp - 0x730], 0
push 0x10c
lea ecx, [ebp - 0x738]
push ecx
mov edx, dword [ebp - 0x214]
push edx
push 0x4700f8
mov eax, dword [ebp - 0x73c]
mov ecx, dword [eax + 0x1998]
push ecx
call sub.Amnet.dll_bool___cdecl_Amnet::Connect_int__char___unsigned_int__char___unsigned_int_
add esp, 0x14
movzx edx, al
test edx, edx
je 0x44327a
mov dword [ebp - 4], 1
jmp 0x443282
xor eax, eax
jne 0x442fe0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret