Function at 0x670e10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x78ca90]
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 fcn.005cfab0
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [0x77d37c]
push ecx
call fcn.00405860
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
push 1
call fcn.00672190
add esp, 4
test eax, eax
jne 0x670eb4
mov eax, dword [ebp - 0x1c]
jmp 0x671335
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.00665c40
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.0062f520
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x670f30
mov eax, dword [ebp - 0x14]
push eax
call fcn.005d4bd9
add esp, 4
cmp eax, 6
jne 0x670f30
cmp dword [ebp + 0x10], 0
jne 0x670f30
mov dword [ebp - 0x45c], 0x17
cmp dword [ebp - 0x18], 0
je 0x670f41
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x874], ecx
jmp 0x670f4a
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 0x670f79
cmp dword [ebp - 0x440], 0
jne 0x670fd8
cmp dword [ebp + 0x10], 0
jne 0x670fd8
cmp dword [ebp - 0x45c], 0x17
jne 0x670f94
mov dword [ebp - 0x45c], 2
jmp 0x670f9e
mov dword [ebp - 0x45c], 0x17
cmp dword [ebp - 0x18], 0
je 0x670faf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x878], eax
jmp 0x670fb8
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 0x670ffd
mov eax, dword [ebp - 0x18]
push eax
call fcn.0062c1c0
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 8], 0
je 0x671017
mov ecx, dword [ebp - 8]
push ecx
call fcn.00672480
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x671335
cmp dword [ebp - 0x440], 0
jne 0x671028
mov eax, dword [ebp - 0x1c]
jmp 0x671335
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 0x6710a8
mov ecx, dword [ebp - 8]
push ecx
call fcn.00672480
add esp, 4
mov edx, dword [ebp - 0x440]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x1c]
jmp 0x671335
push 4
push str.fe80
lea eax, [ebp - 0x868]
push eax
call fcn.005daa12
add esp, 0xc
test eax, eax
je 0x671126
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 4], 0x17
jne 0x671126
push 0x401
lea edx, [ebp - 0x868]
push edx
call fcn.00636cc0
add esp, 8
add eax, 1
push eax
lea eax, [ebp - 0x868]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.00636d20
add esp, 0xc
push 4
push str.fec0
lea edx, [ebp - 0x868]
push edx
call fcn.005daa12
add esp, 0xc
test eax, eax
jne 0x67111b
jmp 0x67119d
mov eax, dword [ebp - 0x870]
mov dword [ebp - 0x28], eax
jmp 0x671181
mov ecx, dword [ebp - 0x870]
cmp dword [ecx + 4], 2
jne 0x671181
cmp dword [ebp - 0x28], 0
jne 0x671181
mov edx, dword [ebp - 0x870]
mov dword [ebp - 0x28], edx
push 0x401
lea eax, [ebp - 0x868]
push eax
call fcn.00636cc0
add esp, 8
add eax, 1
push eax
lea ecx, [ebp - 0x868]
push ecx
lea edx, [ebp - 0x438]
push edx
call fcn.00636d20
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x671181
mov dword [ebp - 0x870], 0
jmp 0x67119d
mov eax, dword [ebp - 0x870]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x870], ecx
cmp dword [ebp - 0x870], 0
jne 0x671034
cmp dword [ebp - 0x870], 0
jne 0x671205
cmp dword [ebp - 0x28], 0
je 0x6711fd
push 0x401
lea edx, [ebp - 0x438]
push edx
call fcn.00636cc0
add esp, 8
test eax, eax
je 0x6711fd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x870], eax
push 0x401
lea ecx, [ebp - 0x438]
push ecx
call fcn.00636cc0
add esp, 8
add eax, 1
push eax
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x868]
push eax
call fcn.00636d20
add esp, 0xc
jmp 0x671205
mov eax, dword [ebp - 0x1c]
jmp 0x671335
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 0x671231
mov ecx, dword [ebp - 0x43c]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 0x43c], edx
cmp dword [ebp - 0x43c], 0
je 0x671288
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x86c], ecx
cmp dword [ebp - 0x86c], 0
jne 0x671254
jmp 0x671222
push 0
push 0x3a
mov edx, dword [ebp - 0x86c]
push edx
call fcn.00401680
add esp, 0xc
test eax, eax
je 0x67126d
jmp 0x671222
push 0
push 0x2e
mov eax, dword [ebp - 0x86c]
push eax
call fcn.00401680
add esp, 0xc
test eax, eax
je 0x671286
jmp 0x671288
jmp 0x671222
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x86c]
push edx
call fcn.00666150
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x6712af
mov eax, dword [ebp - 4]
mov dword [ebp - 0x87c], eax
jmp 0x6712bb
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.00671fe0
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
je 0x6712fb
mov ecx, dword [ebp - 4]
push ecx
call fcn.0062c1c0
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.006720f0
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.005cfbcb
mov esp, ebp
pop ebp
ret