Function at 0x404920
Capabilities:
Get hostname
Read .ini file
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4226a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [0x4306a0]
push ebx
mov dword [esp + 0xc0], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x48], bl
mov ecx, 0x1f
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x4352a0]
mov edx, 0x4307e0
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x404970
mov eax, dword [str.Accelerator]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x4307e0
push ebx
push str.RunningMode
push eax
call esi
mov ecx, dword [str.Accelerator]
push 0x4307e0
push ebx
push str.PacketType
push ecx
mov dword [0x434918], eax
call esi
cmp eax, ebx
mov dword [0x434924], eax
je 0x4049ce
cmp eax, 1
je 0x4049ce
push eax
push str.ReadConfiginvalid_g_packet_type:_d__auto_set_default_0
call fcn.0040b4c0
add esp, 8
mov dword [0x434924], ebx
mov edx, dword [str.Accelerator]
push 0x4307e0
push 0x1890
push str.ListenPort
push edx
call esi
mov ecx, dword [0x4352e4]
mov word [0x430770], ax
lea eax, [esp + 0x2c]
push eax
add ecx, 0xd0
call fcn.0040dbf0
mov dword [esp + 0xd4], ebx
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004098b0
add esp, 8
mov byte [esp + 0xd4], 1
cmp dword [eax + 0x18], 0x10
jb 0x404a2a
mov ecx, dword [eax + 4]
jmp 0x404a2d
lea ecx, [eax + 4]
mov edx, 0x43078c
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x404a32
mov byte [esp + 0xd4], bl
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0xd4], 0xffffffff
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push 0x43078c
call edi
cmp eax, 0xffffffff
push 0x43078c
jne 0x404ae2
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x404ad1
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x48]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x404a95
lea edx, [esp + 0x48]
push edx
push 0x43078c
push str.ReadConfigdomain__s_____ip__s_.
call fcn.0040b4c0
add esp, 0xc
xor eax, eax
jmp 0x404ac0
mov cl, byte [esp + eax + 0x48]
mov byte [eax + 0x43078c], cl
inc eax
cmp cl, bl
jne 0x404ac0
jmp 0x404aef
push 3
call fcn.00411330
mov eax, 0xa
jmp 0x404cbe
push str.ReadConfiginet_addr__s__success.
call fcn.0040b4c0
add esp, 8
mov ecx, dword [0x4352e4]
add ecx, 0xd0
call fcn.0040ca50
push 0x4307e0
push 1
mov word [0x43076c], ax
mov eax, dword [str.Accelerator]
push str.ChkInnerIp
push eax
call esi
mov ecx, dword [str.Accelerator]
push 0x4307e0
push 8
push str.ChannelCount
push ecx
mov dword [0x4301b8], eax
call esi
mov edx, dword [str.Accelerator]
push 0x4307e0
push ebx
push str.MaxChannelCount
push edx
mov dword [0x43491c], eax
call esi
push 0x43078c
mov dword [0x434920], eax
call edi
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
cmp eax, 0xa000000
jb 0x404b6e
cmp eax, 0xaffffff
jbe 0x404b8a
cmp eax, 0xac100000
jb 0x404b7c
cmp eax, 0xac1fffff
jbe 0x404b8a
cmp eax, 0xc0a80000
jb 0x404bb3
cmp eax, 0xc0a8ffff
ja 0x404bb3
mov eax, dword [0x430744]
push eax
push 0x43078c
push str.ReadConfiginternal_ip:_s__channel_count__cpu_count__d_.
mov dword [0x430904], 1
mov dword [0x43491c], eax
call fcn.0040b4c0
add esp, 0xc
jmp 0x404bcb
push 0x43078c
push str.ReadConfiginternet_ip:_s.
mov dword [0x430904], ebx
call fcn.0040b4c0
add esp, 8
mov eax, dword [0x43491c]
cmp eax, ebx
jg 0x404c0f
jge 0x404c02
mov eax, dword [0x430744]
cmp eax, 2
mov ecx, eax
mov dword [0x43491c], ecx
jge 0x404bf1
lea ecx, [eax + 1]
mov dword [0x43491c], ecx
push ecx
push eax
push str.ReadConfigconfig_set__1__cpu_count:_d____g_channel_count:_d
call fcn.0040b4c0
add esp, 0xc
jmp 0x404c0f
push str.ReadConfigconfig_set_0__adopt_server_cpu_count
call fcn.0040b4c0
add esp, 4
cmp dword [0x43491c], 0x10
jle 0x404c22
mov dword [0x43491c], 0x10
mov eax, dword [str.Accelerator]
push 0x4307e0
mov edi, 0x1000
push edi
push str.BufSize
push eax
call esi
mov ecx, dword [0x434924]
cmp ecx, 1
mov dword [0x430788], eax
je 0x404c65
cmp ecx, ebx
jne 0x404c6b
cmp eax, 0x200
jge 0x404c61
mov dword [0x430788], 0x200
jmp 0x404c6b
cmp eax, edi
jle 0x404c6b
mov dword [0x430788], edi
lea ecx, [esp + 0xc]
push ecx
push 0x4307bc
push ebx
mov dword [esp + 0x18], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x404c95
push str.ReadConfigGetComputerNameEx_fail.
call fcn.0040b4c0
add esp, 4
movzx edx, word [0x43076c]
mov eax, dword [0x43491c]
mov ecx, dword [0x434924]
push edx
push 0x43078c
push eax
push ecx
push str.ReadConfigg_packet_type:_d__g_channel_count:_d__g_ip_dessvr:_s__g_port_dessvr:_d
call fcn.0040b4c0
add esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc0]
pop ebx
call fcn.00421871
add esp, 0xcc
ret