Function at 0x4046a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push ecx
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x109
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x21c]
call eax
cmp esi, esp
call fcn.00415464
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40471a
mov esi, esp
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x210
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x222
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x21c]
call edx
cmp esi, esp
call fcn.00415464
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4048ee
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 1
je 0x40474b
cmp dword [ebp - 0x44], 2
je 0x4048c6
cmp dword [ebp - 0x44], 3
je 0x4048db
jmp 0x4048ee
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
push 0x20
push 0
lea edx, [ebp - 0x3c]
push edx
call fcn.00408a80
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 2
je 0x40477d
cmp dword [ebp - 0x48], 3
je 0x404786
jmp 0x40478f
mov dword [ebp - 0x38], 2
jmp 0x404796
mov dword [ebp - 0x38], 0x17
jmp 0x404796
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 6
mov esi, esp
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp esi, esp
call fcn.00415464
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4048c4
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
jmp 0x4047e8
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4048b5
cmp dword [ebp + 8], 2
je 0x4047fe
cmp dword [ebp + 8], 0
jne 0x404852
mov edx, dword [ebp - 0x10]
cmp dword [edx + 4], 2
jne 0x404852
mov eax, dword [ebp - 4]
mov dword [eax], 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 4]
add edx, 4
push edx
call fcn.00407dd0
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x210]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00415464
mov edx, dword [ebp - 4]
mov word [edx + 6], ax
jmp 0x4048b5
cmp dword [ebp + 8], 3
je 0x40485e
cmp dword [ebp + 8], 0
jne 0x4048b0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0x17
jne 0x4048b0
mov ecx, dword [ebp - 4]
mov dword [ecx], 3
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
push edx
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00407dd0
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x210]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.00415464
mov ecx, dword [ebp - 4]
mov word [ecx + 6], ax
jmp 0x4048b5
jmp 0x4047df
mov edx, dword [ebp - 4]
cmp dword [edx], 1
jne 0x4048c4
mov dword [ebp - 8], 0x57
jmp 0x4048ee
cmp dword [ebp + 8], 2
je 0x4048d9
cmp dword [ebp + 8], 0
je 0x4048d9
mov dword [ebp - 8], 0x2c2
jmp 0x4048ee
cmp dword [ebp + 8], 3
je 0x4048ee
cmp dword [ebp + 8], 0
je 0x4048ee
mov dword [ebp - 8], 0x2c2
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x404914]
call fcn.00415487
pop eax
pop edx
pop edi
pop esi
add esp, 0x48
cmp ebp, esp
call fcn.00415464
mov esp, ebp
pop ebp
ret 8