Function at 0x4045b0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4b869c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xb4
mov esi, ecx
mov dword [esp + 0x14], ebx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x4045fe
push ebx
push ebx
push 1
push 1
mov ecx, eax
call fcn.00428b30
mov ebp, eax
jmp 0x404600
xor ebp, ebp
push ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x30], 0xffffffff
call fcn.00428f70
push ebx
push ebx
mov ecx, ebp
call fcn.00428fa0
push 1
push ebp
mov ecx, esi
call fcn.0041b8a0
push 0x1b8
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
mov dword [esp + 0x28], 1
je 0x4046bf
mov eax, dword [str.text]
test eax, eax
jne 0x404651
mov eax, 0x4c8731
mov ecx, dword [0x4e4f74]
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00472c90
mov edx, dword [0x4e4f74]
push edx
push 0
push 0x4c8731
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
mov dword [esp + 0x1c], 1
call fcn.00472c90
lea eax, [esp + 0x18]
push eax
push 0x514290
push 0x20
push 0x50a08c
push 0x50a094
lea ecx, [esp + 0x28]
push ecx
push 0x2716
mov ebx, 3
push esi
mov ecx, edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
call fcn.00404420
jmp 0x4046c1
xor eax, eax
or edi, 0xffffffff
test bl, 2
mov dword [esi + 0x1a8], eax
je 0x4046ef
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
and ebx, 0xfffffffd
cmp ecx, edi
je 0x4046ef
dec ecx
mov dword [eax], ecx
jne 0x4046ef
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
test bl, 1
mov dword [esp + 0x28], edi
je 0x404715
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, edi
je 0x404715
dec ecx
mov dword [eax], ecx
jne 0x404715
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov edx, dword [esi + 0x1a8]
push 0
push 5
push 0x20f0
push 0
push edx
mov ecx, ebp
call fcn.004044d0
push str.L2authd.Lineage2.com
mov dword [esi + 0x1ac], 0x83a
mov dword [esi + 0x1b0], 0x229
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40475d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esi + 0x1b4], edx
push 0x88
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 6
je 0x404783
mov ecx, eax
call fcn.00404dd0
jmp 0x404785
xor eax, eax
mov ecx, dword [esi + 0x1b4]
mov edx, dword [esi + 0x1b0]
push ecx
mov ecx, dword [esi + 0x1ac]
push edx
push ecx
push 0x1389
mov ecx, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x1b8], eax
call fcn.00404cd0
mov eax, dword [esi + 0x1b8]
mov dword [eax + 0x58], esi
mov ecx, dword [esi + 0x1b8]
call fcn.004712f0
push 0x88
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 7
je 0x4047ea
mov ecx, eax
call fcn.00404dd0
jmp 0x4047ec
xor eax, eax
mov edx, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
push edx
mov edx, dword [esi + 0x1ac]
push ecx
push edx
push 0x138a
mov ecx, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x1bc], eax
call fcn.00404cd0
mov eax, dword [esi + 0x1bc]
mov dword [eax + 0x58], esi
mov ecx, dword [esi + 0x1bc]
call fcn.004712f0
push 0x88
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 8
je 0x404851
mov ecx, eax
call fcn.00404dd0
jmp 0x404853
xor eax, eax
mov ecx, dword [esi + 0x1b4]
mov edx, dword [esi + 0x1b0]
push ecx
mov ecx, dword [esi + 0x1ac]
push edx
push ecx
push 0x138b
mov ecx, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x1c0], eax
call fcn.00404cd0
mov eax, dword [esi + 0x1c0]
mov dword [eax + 0x58], esi
mov ecx, dword [esi + 0x1c0]
call fcn.004712f0
push 0x88
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x28], 9
je 0x4048b8
mov ecx, eax
call fcn.00404dd0
jmp 0x4048ba
xor eax, eax
mov edx, dword [esi + 0x1b4]
mov ecx, dword [esi + 0x1b0]
push edx
mov edx, dword [esi + 0x1ac]
push ecx
push edx
push 0x138c
mov ecx, eax
mov dword [esp + 0x38], edi
mov dword [esi + 0x1c4], eax
call fcn.00404cd0
mov eax, dword [esi + 0x1c4]
mov dword [eax + 0x58], esi
mov ecx, dword [esi + 0x1c4]
call fcn.004712f0
mov eax, dword [0x4e4f74]
push eax
push 0
push str.version_3_0__10.5.7__n
lea ecx, [esp + 0x28]
call fcn.00472c90
mov ecx, dword [esi + 0x1a8]
mov edx, dword [ecx]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 0xa
call dword [edx + 0x344]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
cmp ecx, edi
pop edi
pop esi
pop ebp
pop ebx
je 0x40494b
dec ecx
mov dword [eax], ecx
jne 0x40494b
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret