Function at 0x420b3d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00430c55
xor ecx, ecx
cmp al, 2
sete cl
xor esi, esi
push esi
push 7
lea eax, [ebp - 0x1c]
push eax
mov edi, ebx
mov dword [ebp - 0x14], ecx
call fcn.004158d1
test al, al
jne 0x420b7f
xor al, al
jmp 0x420d1d
cmp byte [ebp - 5], 0
je 0x420b91
mov edi, ebx
push esi
push 1
lea eax, [ebp - 5]
push eax
call fcn.004158d1
test al, al
jne 0x420b77
jmp 0x420b70
mov ecx, dword [ebp - 0x19]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
dec eax
mov byte [ebp - 9], 0x5a
cmp eax, 0xfe
ja 0x420c4b
push 0
push 1
lea eax, [ebp - 5]
push eax
mov edi, ebx
call fcn.004158d1
test al, al
je 0x420b70
mov al, byte [ebp - 5]
mov byte [ebp + esi - 0x134], al
test al, al
je 0x420bf6
inc esi
cmp esi, 0xff
jle 0x420bc7
jmp 0x420b70
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x420c18
mov byte [ebp - 9], 0x5b
jmp 0x420c4b
mov esi, dword [ebp - 0x10]
jmp 0x420c26
cmp dword [esi + 4], 2
je 0x420c2c
mov esi, dword [esi + 0x1c]
cmp esi, edi
jne 0x420c1d
jmp 0x420c3e
mov eax, dword [esi + 0x18]
push 4
add eax, 4
push eax
lea eax, [ebp - 0x19]
push eax
call fcn.00421d23
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, edi
je 0x420c12
cmp byte [ebp - 9], 0x5a
mov byte [ebp - 5], 1
jne 0x420d84
push 0x10
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x30], ax
movzx eax, byte [ebp - 0x1c]
dec eax
je 0x420d24
dec eax
je 0x420c88
mov byte [ebp - 9], 0x5b
jmp 0x420d84
lea eax, [ebp - 0x30]
call fcn.00415aa7
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x420c7f
push dword [ebp - 0x14]
push 0x5a
push esi
push ebx
call fcn.00420ac7
mov edi, eax
cmp edi, 1
jne 0x420d03
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00415c7f
mov esi, dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00415caf
cmp edi, 0xffffffff
jne 0x420cd8
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0x5b
jmp 0x420d84
push edi
call fcn.00431324
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
or eax, 2
push eax
push 0x5a
push edi
push ebx
call fcn.00420ac7
mov edi, eax
cmp edi, 1
jne 0x420d00
push dword [ebp - 0x20]
call fcn.00415b08
mov esi, dword [ebp - 0x20]
call fcn.00415caf
cmp edi, 0xffffffff
je 0x420c7f
cmp edi, 1
je 0x420d1a
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
mov ax, word [ebp - 0x1b]
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x19]
lea edi, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call fcn.004159ad
mov esi, eax
cmp esi, 0xffffffff
je 0x420c7f
push esi
call fcn.00431324
push dword [ebp - 0x14]
push 0x5a
push esi
push ebx
call fcn.00420ac7
cmp eax, 1
jne 0x420d64
push esi
call fcn.00415b08
jmp 0x420d73
cmp eax, 0xffffffff
jne 0x420d6f
mov byte [ebp - 9], 0x5b
jmp 0x420d73
mov byte [ebp - 5], 0
call fcn.00415caf
cmp byte [ebp - 5], 1
jne 0x420d1a
cmp byte [ebp - 9], 0x5a
je 0x420d1a
push dword [ebp - 0x14]
push dword [ebp - 9]
push 0xffffffffffffffff
push ebx
call fcn.00420ac7
test eax, eax
setne al
jmp 0x420d1d