Function at 0x489d20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x248
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4aa270
mov dword [ebp - 0x5c], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x4c], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
lea ecx, [ebp - 0x254]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
call fcn.0042a4f0
cmp byte [ebp - 0x254], 0
je 0x489e83
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x253]
test esi, esi
je 0x489dd0
mov eax, dword [ebp - 0x30]
lea ecx, [esi - 1]
movzx edx, byte [eax]
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp dl, 0x3a
jne 0x489dd0
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x254]
mov dword [ebp - 0x24c], 0xa
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x248], 1
call fcn.0042ac40
cmp ax, 1
jne 0x489dd2
mov esi, dword [ebp - 0x2c]
jmp 0x489ddb
xor eax, eax
test ax, ax
je 0x489e83
mov eax, dword [ebp - 0x4c]
test esi, esi
jne 0x48a080
mov eax, ebx
movzx esi, dx
mov dword [ebp - 0x4c], ebx
xor edi, edi
shrd eax, edx, 8
shr esi, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24c]
movsd xmm0, qword [ebp - 0x254]
mov ecx, 0x20
mov edx, 4
mov dword [ebp - 0x74], eax
movsd qword [ebp - 0x7c], xmm0
movzx eax, byte [0x53cbf0]
call fcn.00425bd0
test eax, eax
je 0x48a699
mov edx, dword [ebp - 0x28]
movzx ecx, byte [ebp - 0x4c]
mov word [eax], di
shld esi, edx, 8
shl edx, 8
or ecx, edx
mov word [eax + 6], si
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 2], ecx
movq xmm0, qword [ebp - 0x7c]
movq qword [eax + 8], xmm0
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], esi
mov word [eax + 0x1c], bx
mov dword [edx], eax
mov dword [edx + 4], 1
mov dword [edx + 8], eax
add eax, 0x20
mov dword [edx + 0xc], eax
jmp 0x48a143
test edi, edi
je 0x48a077
mov edx, dword [ebp - 0x4c]
lea ecx, [edi - 1]
lea eax, [edx + 1]
movzx edx, byte [edx]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
cmp dl, 0x5b
jne 0x48a077
lea ecx, [ebp - 0x254]
lea edx, [ebp - 0x30]
call fcn.0042a840
cmp byte [ebp - 0x254], 0
je 0x48a077
mov edx, dword [ebp - 0x247]
mov eax, dword [ebp - 0x253]
movq xmm0, qword [ebp - 0x24f]
mov esi, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
movq qword [ebp - 0xb4], xmm0
test edx, edx
je 0x489f64
cmp byte [esi], 0x25
jne 0x489fa1
lea ecx, [esi + 1]
lea eax, [edx - 1]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x24], 0
mov ebx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x54], ecx
nop dword [eax]
cmp dword [ebp - 0x38], 0
mov eax, 0
je 0x489f3f
movzx esi, byte [ebx]
xor eax, eax
add esi, 0xffffffd0
cmp esi, 0xa
setb al
jae 0x489f3f
dec dword [ebp - 0x38]
inc ebx
cmp eax, 1
jne 0x489f66
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov ebx, edx
mov edx, 0xa
mul edx
jo 0x489f7f
add eax, esi
mov edx, ebx
jb 0x489f88
dec dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov ebx, ecx
jmp 0x489f20
jmp 0x489fa1
cmp dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x24]
je 0x489f8f
mov esi, dword [ebp - 0x38]
mov ecx, 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
jmp 0x489f91
mov esi, dword [ebp - 0x34]
mov edx, ebx
xor ecx, ecx
jmp 0x489f94
mov esi, dword [ebp - 0x34]
xor ecx, ecx
jmp 0x489f94
xor ecx, ecx
mov esi, dword [ebp - 0x34]
cmp ecx, 1
jne 0x489fa1
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
jmp 0x489fa6
test ecx, ecx
cmove eax, ecx
mov dword [ebp - 0x24], eax
test edx, edx
je 0x48a077
cmp byte [esi], 0x5d
jne 0x48a077
mov ebx, edx
dec ebx
je 0x48a00e
mov ecx, esi
movzx ecx, byte [esi + 1]
lea eax, [esi + 2]
add edx, 0xfffffffe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp cl, 0x3a
jne 0x48a00e
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x254]
mov dword [ebp - 0x24c], 0xa
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x248], 1
mov dword [ebp - 0x10], 0xffffffff
call fcn.0042ac40
cmp ax, 1
jne 0x48a010
jmp 0x48a01c
xor eax, eax
inc esi
test ax, ax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
je 0x48a077
mov eax, dword [ebp - 0xac]
movq xmm0, qword [ebp - 0xb4]
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x4c]
movq qword [ebp - 0x88], xmm0
jne 0x48a080
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x80]
movsd xmm0, qword [ebp - 0x88]
mov ebx, edx
mov di, 1
mov dword [ebp - 0x4c], 0
mov esi, eax
shl eax, 8
mov dword [ebp - 0x24c], ecx
movsd qword [ebp - 0x254], xmm0
shr esi, 0x18
mov dword [ebp - 0x28], eax
jmp 0x489dfa
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov ebx, edi
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], 0x3a
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x23c], 0x3a
mov dword [ebp - 0x10], 0xffffffff
jmp 0x48a0ca
cmp ebx, edi
mov dword [ebp - 0x244], ebx
ja 0x48a122
mov edx, dword [ebp - 0x4c]
mov ecx, 0x3a
push ebx
call fcn.0042ce80
add esp, 4
cmp eax, 1
jne 0x48a122
mov ebx, edx
cmp edx, 0xffffffff
je 0x48a0c0
mov esi, ebx
inc esi
cmp esi, edi
ja 0x48a0c0
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + ebx]
cmp al, byte [ebp - 0x23c]
jne 0x48a0c0
sub edi, esi
je 0x48a21a
mov eax, dword [ebp - 0x4c]
lea edx, [eax + esi]
movzx eax, byte [edx]
cmp eax, 0x2d
je 0x48a157
cmp eax, 0x2b
jne 0x48a160
dec edi
je 0x48a21a
inc edx
jmp 0x48a160
mov eax, 0x4ec014
mov byte [ebp - 0x68], 2
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x248
pop esi
pop edi
pop ebx
pop ebp
ret
cmp edi, 1
je 0x48a21a
xor eax, eax
cmp edi, 5
jae 0x48a1f0
nop dword [eax + eax]
movzx ecx, byte [edx]
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x48a21a
add eax, eax
inc edx
lea eax, [eax + eax*4]
add eax, ecx
dec edi
jne 0x48a170
mov dword [ebp - 0x24], eax
mov eax, dword [0x53cb84]
cmp eax, 3
jne 0x48a660
cmp ebx, 0x17f
ja 0x48a678
push ebx
push dword [ebp - 0x4c]
lea eax, [ebp - 0x254]
push eax
call fcn.004ba8e0
add esp, 0xc
cmp ebx, 6
mov byte [ebp + ebx - 0x254], 0
ja 0x48a224
lea eax, [ebx + 1]
xor ecx, ecx
nop dword [eax]
cmp byte [ebp + ecx - 0x254], 0
je 0x48a29d
inc ecx
cmp eax, ecx
jne 0x48a1d0
jmp 0x48a300
test edi, edi
je 0x48a18a
movzx ecx, byte [edx]
mov dword [ebp - 0x24], edx
mov dx, 0xa
mul dx
seto dl
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x48a21a
test dl, dl
jne 0x48a21a
mov edx, dword [ebp - 0x24]
dec edi
inc edx
add ax, cx
jae 0x48a1f0
mov eax, 0x4ec034
jmp 0x48a127
mov cl, 1
xor eax, eax
test cl, cl
jne 0x48a243
jne 0x48a243
xor ecx, ecx
cmp byte [ebp + ecx - 0x254], 0
je 0x48a29d
inc ecx
jne 0x48a230
xor ecx, ecx
test cl, cl
jne 0x48a283
lea ecx, [ebx - 7]
mov edx, dword [ebp + eax - 0x254]
mov edi, edx
add edx, 0xfefefeff
not edi
and edx, edi
test edx, 0x80808080
jne 0x48a283
mov edx, dword [ebp + eax - 0x250]
mov edi, edx
add edx, 0xfefefeff
not edi
and edx, edi
test edx, 0x80808080
jne 0x48a283
add eax, 8
cmp eax, ecx
jbe 0x48a246
cmp esi, eax
je 0x48a300
lea ecx, [ebx + 1]
cmp byte [ebp + eax - 0x254], 0
je 0x48a29b
inc eax
cmp ecx, eax
jne 0x48a28a
jmp 0x48a300
mov ecx, eax
cmp ecx, ebx
jne 0x48a300
pxor xmm0, xmm0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0xb4]
movdqu xmmword [ebp - 0xb4], xmm0
movdqu xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0xac], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x48a38a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 0
jmp 0x48a311
mov eax, dword [0x4ea9f0]
mov ecx, dword [0x4ea9f4]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], eax
mov eax, 1
test eax, eax
jne 0x48a12e
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
test eax, eax
je 0x48a375
movzx edi, word [ebp - 0x60]
mov ecx, 0x4ebff0
movd xmm0, ecx
mov ecx, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
movzx edx, word [ecx]
cmp edx, 0x17
je 0x48a3d7
cmp edx, 2
je 0x48a3a4
movdqa xmm1, xmm3
movdqa xmm2, xmm0
test ebx, ebx
mov eax, ebx
pand xmm1, xmmword [0x4ce360]
por xmm1, xmmword [0x4ce370]
punpcklqdq xmm2, xmm1
shufps xmm2, xmm3, 0xe2
movaps xmm3, xmm2
jne 0x48a335
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 4
xor esi, esi
xor ecx, ecx
jmp 0x48a648
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x24]
mov word [ebp - 0x60], ax
xor eax, eax
jmp 0x48a316
cmp dword [eax + 0x10], 0x10
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x50], esi
jb 0x48a710
movzx eax, word [ecx + 4]
xor esi, esi
mov word [ebp - 0x24], di
mov dword [ebp - 0x28], eax
movzx eax, word [ecx + 6]
movd xmm0, eax
movss xmm3, xmm0
movd ebx, xmm0
movups xmmword [ebp - 0x4c], xmm3
jmp 0x48a415
cmp dword [eax + 0x10], 0x1c
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x24], di
mov dword [ebp - 0x50], esi
jb 0x48a734
movdqu xmm0, xmmword [ecx + 8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov si, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], ecx
movd ebx, xmm0
movdqu xmmword [ebp - 0x4c], xmm0
pextrw edi, xmm0, 1
movzx eax, byte [0x53cbf0]
mov ecx, 0x80
mov edx, 4
call fcn.00425bd0
test eax, eax
je 0x48a6b1
movdqu xmm2, xmmword [ebp - 0x4c]
shl ebx, 0x10
mov word [eax], si
mov ecx, dword [ebp - 0x34]
movzx esi, word [ebp - 0x24]
mov edx, 0x4ebff0
mov dword [ebp - 0x4c], 1
add ebx, dword [ebp - 0x28]
movd xmm4, edx
pshufd xmm3, xmm2, 0xaa
pshufd xmm0, xmm2, 0xf9
pshufd xmm1, xmm2, 0xff
movdqa xmm2, xmmword [0x4ce360]
mov dword [eax + 2], ebx
mov word [eax + 6], di
movd dword [eax + 0xc], xmm3
mov edi, dword [ebp - 0x3c]
movdqa xmm3, xmmword [0x4ce370]
mov ebx, dword [ebp - 0x38]
movd dword [eax + 0x10], xmm1
movd dword [eax + 8], xmm0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edi
mov word [eax + 0x1c], si
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 4
mov dword [ebp - 0x24c], 1
jmp 0x48a519
shl esi, 0x10
mov edi, dword [ebp - 0x34]
mov ecx, edx
pshufd xmm0, xmm5, 0xf9
inc edx
add esi, dword [ebp - 0x28]
shl ecx, 5
pshufd xmm1, xmm0, 0xee
pshufd xmm5, xmm0, 0x55
mov dword [ebp - 0x4c], edx
mov word [eax + ecx], di
mov edi, dword [ebp - 0x54]
mov dword [eax + ecx + 2], esi
mov esi, dword [ebp - 0x3c]
mov word [eax + ecx + 6], si
movd dword [eax + ecx + 0x10], xmm1
movd dword [eax + ecx + 0xc], xmm5
movd dword [eax + ecx + 8], xmm0
mov dword [eax + ecx + 0x14], edi
mov esi, dword [ebp - 0x58]
movzx edi, word [ebp - 0x24]
mov dword [eax + ecx + 0x18], esi
mov word [eax + ecx + 0x1c], di
mov dword [ebp - 0x24c], edx
test ebx, ebx
je 0x48a630
mov edx, ebx
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x1c]
movzx esi, word [ecx]
cmp esi, 0x17
je 0x48a590
cmp esi, 2
je 0x48a55c
movdqa xmm0, xmm5
movdqa xmm1, xmm4
test ebx, ebx
mov edx, ebx
pand xmm0, xmm2
por xmm0, xmm3
punpcklqdq xmm1, xmm0
shufps xmm1, xmm5, 0xe2
movaps xmm5, xmm1
jne 0x48a523
jmp 0x48a630
cmp dword [edx + 0x10], 0x10
jb 0x48a6d0
movzx edx, word [ecx + 4]
movzx ecx, word [ecx + 6]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x4c]
movd xmm0, ecx
movzx ecx, word [ebp - 0x24]
mov dword [ebp - 0x3c], ecx
movss xmm5, xmm0
movd esi, xmm0
jmp 0x48a5c8
cmp dword [edx + 0x10], 0x1c
mov edx, dword [ebp - 0x4c]
jb 0x48a6f0
mov esi, dword [ecx + 4]
movdqu xmm5, xmmword [ecx + 8]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x58], ecx
pextrw ecx, xmm5, 1
mov dword [ebp - 0x54], esi
movd esi, xmm5
mov dword [ebp - 0x3c], ecx
mov cx, 1
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x250], edx
jne 0x48a4b9
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x70], esi
movdqu xmmword [ebp - 0xc4], xmm5
movdqu xmmword [ebp - 0xd4], xmm4
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], 1
call fcn.004cb3b0
mov eax, dword [ebp - 0x254]
movdqa xmm2, xmmword [0x4ce360]
movdqa xmm3, xmmword [0x4ce370]
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x4c]
movdqu xmm4, xmmword [ebp - 0xd4]
movdqu xmm5, xmmword [ebp - 0xc4]
mov esi, dword [ebp - 0x70]
jmp 0x48a4b9
push dword [ebp - 0x50]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x250]
mov esi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
shl esi, 5
add esi, eax
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], esi
jmp 0x48a143
mov dword [ebp - 0x10], 0xffffffff
call fcn.004cb450
cmp ebx, 0x17f
jbe 0x48a1a7
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x24]
push ebx
call fcn.004cb4a0
add esp, 8
mov eax, dword [ebp - 0x6c]
jmp 0x48a316
mov ecx, 4
mov edx, 0x20
mov dword [ebp - 0x10], 0xffffffff
call fcn.004c8580
ud2
mov ecx, 4
mov edx, 0x80
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
call fcn.004c8580
jmp 0x48a756
mov dword [ebp - 0x10], 1
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x4ebf7c
call fcn.004c88c0
add esp, 4
jmp 0x48a756
mov dword [ebp - 0x10], 1
mov ecx, 0x4ebf8c
mov edx, 0x43
push 0x4ebfd0
call fcn.004c88c0
add esp, 4
jmp 0x48a756
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x4ebf7c
call fcn.004c88c0
add esp, 4
jmp 0x48a756
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
mov ecx, 0x4ebf8c
mov edx, 0x43
push 0x4ebfd0
call fcn.004c88c0
add esp, 4
ud2