Function at 0x4883f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x5274d0]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x438], 0
push 0x400
push 0
lea eax, [ebp - 0x437]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [0x51d84c]
push ecx
call fcn.00405860
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
push 1
call fcn.00489770
add esp, 4
test eax, eax
jne 0x488494
mov eax, dword [ebp - 0x1c]
jmp 0x488915
push 0
push 0x20
push 0
lea edx, [ebp - 0x460]
push edx
call fcn.00401ca0
add esp, 0x10
mov dword [ebp - 0x460], 2
mov dword [ebp - 0x458], 1
mov dword [ebp - 0x45c], 2
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004752a0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00451840
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x488510
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCR120.dll_atoi
add esp, 4
cmp eax, 6
jne 0x488510
cmp dword [ebp + 0x10], 0
jne 0x488510
mov dword [ebp - 0x45c], 0x17
cmp dword [ebp - 0x18], 0
je 0x488521
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x874], ecx
jmp 0x48852a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x874], edx
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x460]
push ecx
push 0
mov edx, dword [ebp - 0x874]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x488559
cmp dword [ebp - 0x440], 0
jne 0x4885b8
cmp dword [ebp + 0x10], 0
jne 0x4885b8
cmp dword [ebp - 0x45c], 0x17
jne 0x488574
mov dword [ebp - 0x45c], 2
jmp 0x48857e
mov dword [ebp - 0x45c], 0x17
cmp dword [ebp - 0x18], 0
je 0x48858f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x878], eax
jmp 0x488598
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x878], ecx
lea edx, [ebp - 0x440]
push edx
lea eax, [ebp - 0x460]
push eax
push 0
mov ecx, dword [ebp - 0x878]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405a10
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4885dd
mov eax, dword [ebp - 0x18]
push eax
call fcn.0043c5b0
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 8], 0
je 0x4885f7
mov ecx, dword [ebp - 8]
push ecx
call fcn.00489a60
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x488915
cmp dword [ebp - 0x440], 0
jne 0x488608
mov eax, dword [ebp - 0x1c]
jmp 0x488915
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x870], edx
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x20], ecx
push 0
push 0x401
push 0
lea edx, [ebp - 0x868]
push edx
call fcn.00401ca0
add esp, 0x10
push 2
push 0
push 0
push 0x401
lea eax, [ebp - 0x868]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x870]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x488688
mov ecx, dword [ebp - 8]
push ecx
call fcn.00489a60
add esp, 4
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x1c]
jmp 0x488915
push 4
push str.fe80
lea eax, [ebp - 0x868]
push eax
call sub.MSVCR120.dll__strnicmp
add esp, 0xc
test eax, eax
je 0x488706
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 4], 0x17
jne 0x488706
push 0x401
lea edx, [ebp - 0x868]
push edx
call fcn.00459120
add esp, 8
add eax, 1
push eax
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.00459180
add esp, 0xc
push 4
push str.fec0
lea edx, [ebp - 0x868]
push edx
call sub.MSVCR120.dll__strnicmp
add esp, 0xc
test eax, eax
jne 0x4886fb
jmp 0x48877d
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x28], eax
jmp 0x488761
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 4], 2
jne 0x488761
cmp dword [ebp - 0x28], 0
jne 0x488761
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x28], edx
push 0x401
lea eax, [ebp - 0x868]
push eax
call fcn.00459120
add esp, 8
add eax, 1
push eax
lea ecx, [ebp - 0x868]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00459180
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x488761
mov dword [ebp - 0x870], 0
jmp 0x48877d
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x870], ecx
cmp dword [ebp - 0x870], 0
jne 0x488614
cmp dword [ebp - 0x870], 0
jne 0x4887e5
cmp dword [ebp - 0x28], 0
je 0x4887dd
push 0x401
lea edx, [ebp - 0x438]
push edx
call fcn.00459120
add esp, 8
test eax, eax
je 0x4887dd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x870], eax
push 0x401
lea ecx, [ebp - 0x438]
push ecx
call fcn.00459120
add esp, 8
add eax, 1
push eax
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x868]
push eax
call fcn.00459180
add esp, 0xc
jmp 0x4887e5
mov eax, dword [ebp - 0x1c]
jmp 0x488915
mov ecx, dword [ebp - 0x440]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x86c], edx
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x43c], eax
jmp 0x488811
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 0
je 0x488868
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x86c], ecx
cmp dword [ebp - 0x86c], 0
jne 0x488834
jmp 0x488802
push 0
push 0x3a
mov edx, dword [ebp - 0x86c]
push edx
call fcn.00401680
add esp, 0xc
test eax, eax
je 0x48884d
jmp 0x488802
push 0
push 0x2e
mov eax, dword [ebp - 0x86c]
push eax
call fcn.00401680
add esp, 0xc
test eax, eax
je 0x488866
jmp 0x488868
jmp 0x488802
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x86c]
push edx
call fcn.004757b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48888f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x87c], eax
jmp 0x48889b
mov ecx, dword [ebp - 0x86c]
mov dword [ebp - 0x87c], ecx
lea edx, [ebp - 0x868]
push edx
mov eax, dword [ebp - 0x87c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x870]
mov eax, dword [edx + 4]
push eax
call fcn.004895c0
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
je 0x4888db
mov ecx, dword [ebp - 4]
push ecx
call fcn.0043c5b0
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x870]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x870]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004896d0
add esp, 0x10
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00431a84
mov esp, ebp
pop ebp
ret