Function at 0x1000bd40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x280
mov edx, dword [esp + 0x284]
push ebp
push esi
push edi
test edx, edx
mov dword [esp + 0x10], ecx
je 0x1000bdd1
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x8c]
cmp al, 0x30
jne 0x1000bda8
xor al, al
jmp 0x1000bdae
cmp al, 0x31
jne 0x1000bdd1
mov al, 1
mov cl, byte [esp + 0x8d]
xor esi, esi
xor ebp, ebp
cmp cl, 0x7c
mov byte [esp + 0xc], al
jne 0x1000bdc9
lea esi, [esp + 0x8e]
cmp al, 1
jne 0x1000bddf
test esi, esi
jne 0x1000be14
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x280
ret 8
test al, al
jne 0x1000be14
test esi, esi
jne 0x1000be14
mov ecx, dword [esp + 0x10]
push 1
lea edx, [esp + 0x10]
push 1
mov dword [ecx + 0x1d200], esi
push edx
push 3
mov ecx, 0x100581a8
call fcn.1000dc80
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x280
ret 8
push 0x3a
push esi
call fcn.100133e0
add esp, 8
test eax, eax
je 0x1000be29
mov byte [eax], 0
lea ebp, [eax + 1]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x1000be49
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000bdd1
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
jmp 0x1000be4b
mov edi, eax
test edi, edi
je 0x1000bdd1
test ebp, ebp
je 0x1000be5f
push ebp
call fcn.1001333b
add esp, 4
push eax
jmp 0x1000be61
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
and edx, 0xff
mov word [ecx + 0x1d1f4], ax
mov al, byte [esp + 0x294]
test al, al
mov dword [ecx + 0x1d200], edx
mov dword [ecx + 0x1d1f8], edi
je 0x1000bf68
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
push 0x78
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10052888
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x14]
mov ecx, ebp
and ecx, 3
test al, al
rep movsb byte es:[edi], byte [esi]
jne 0x1000bf57
lea eax, [esp + 0x1c]
mov ecx, 0x100581a8
push eax
push 4
call fcn.1000dc80
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x280
ret 8
lea ecx, [esp + 0x1c]
push ecx
push 5
mov ecx, 0x100581a8
call fcn.1000dc80
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x280
ret 8