Function at 0x464a64
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4650f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x464aa7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 3
je 0x464aa7
mov eax, dword [ebp - 4]
call fcn.00463d44
mov dword [ebp - 8], eax
jmp 0x464aac
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4650d9
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.00404424
mov eax, dword [ebp - 4]
mov si, word [eax + 0x3c]
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x6c]
call fcn.004043e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00463890
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 0xc]
call fcn.004043e0
movzx eax, si
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 4
jne 0x4650d9
mov eax, 0x400
lea edx, [ebp - 0x10]
xchg edx, eax
call fcn.004049d8
xor edx, edx
push ebp
push 0x4650d2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x74], 1
jne 0x464ee5
mov ebx, 4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5d]
sub al, 1
jb 0x464b67
jne 0x464b7a
lea eax, [ebp - 0x10]
call fcn.004048a4
mov dword [eax], 0x2000205
jmp 0x464b7a
lea eax, [ebp - 0x10]
call fcn.004048a4
mov dword [eax], 0x105
mov ebx, 3
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
push eax
push 0x400
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00465108
test al, al
jne 0x464bb3
call fcn.00403da8
jmp 0x4650d9
mov eax, dword [ebp - 0x10]
cmp byte [eax], 5
jne 0x464bce
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0xff
jne 0x464bce
call fcn.00403da8
jmp 0x4650d9
mov eax, dword [ebp - 0x10]
cmp byte [eax], 5
jne 0x464ccb
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 2
jne 0x464ccb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
call fcn.0040464c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax], 1
lea eax, [ebp - 0x10]
call fcn.004048a4
mov dl, byte [ebp - 0x1c]
mov byte [eax + 1], dl
cmp dword [ebp - 0x1c], 0
jle 0x464c34
lea eax, [ebp - 0x10]
call fcn.004048a4
add eax, 2
push eax
mov eax, dword [ebp - 4]
add eax, 0x70
call fcn.004048a4
mov ecx, dword [ebp - 0x1c]
pop edx
call fcn.00402c84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
call fcn.0040464c
mov ebx, eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov edx, dword [ebp - 0x1c]
inc edx
mov byte [eax + edx + 1], bl
test ebx, ebx
jle 0x464c79
lea eax, [ebp - 0x10]
call fcn.004048a4
mov edx, dword [ebp - 0x1c]
inc edx
lea eax, [eax + edx + 2]
push eax
mov eax, dword [ebp - 4]
add eax, 0x60
call fcn.004048a4
mov ecx, ebx
pop edx
call fcn.00402c84
add ebx, dword [ebp - 0x1c]
add ebx, 3
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
push eax
push 0x400
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00465108
test al, al
jne 0x464cb8
call fcn.00403da8
jmp 0x4650d9
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0
je 0x464ccb
call fcn.00403da8
jmp 0x4650d9
mov ebx, 8
mov eax, dword [ebp - 0xc]
call fcn.0040484c
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x464d9f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x68], 0
je 0x464d45
mov eax, dword [ebp - 0xc]
call fcn.0040464c
mov ebx, eax
lea eax, [ebp - 0x10]
call fcn.004048a4
add eax, 5
push eax
lea eax, [ebp - 0xc]
call fcn.004048a4
mov ecx, ebx
pop edx
call fcn.00402c84
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 4], bl
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 2], 0
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 3], 3
add ebx, 5
jmp 0x464dcf
mov eax, dword [ebp - 0xc]
call fcn.0040484c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x464d7b
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00402c84
jmp 0x464d85
call fcn.00403da8
jmp 0x4650d9
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 2], 0
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 3], 1
jmp 0x464dcf
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + 4]
lea eax, [ebp - 0x14]
mov ecx, 4
call fcn.00402c84
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 2], 0
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 3], 1
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax], 5
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 1], 1
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [ebx + 1]
movzx ecx, si
shr ecx, 8
and cl, 0xff
mov byte [eax + edx - 1], cl
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [ebx + 1]
mov ecx, esi
and cl, 0xff
mov byte [eax + edx], cl
add ebx, 2
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
push eax
push 0x400
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00465108
test al, al
jne 0x464e4d
call fcn.00403da8
jmp 0x4650d9
xor eax, eax
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + 1]
mov dword [ebp - 8], edx
test eax, eax
je 0x464e6a
mov dword [ebp - 8], eax
call fcn.00403da8
jmp 0x4650d9
cmp dword [ebp - 8], 0xffffffff
jne 0x464e7a
call fcn.00403da8
jmp 0x4650d9
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 3]
dec al
je 0x464e8e
sub al, 2
je 0x464e95
dec al
je 0x464ea6
jmp 0x464ead
mov ebx, 0xa
jmp 0x464eb0
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov bl, byte [eax + 4]
inc ebx
add ebx, 4
add ebx, 2
jmp 0x464eb0
mov ebx, 0x16
jmp 0x464eb0
or ebx, 0xffffffff
cmp ebx, 0xffffffff
jne 0x464ebf
call fcn.00403da8
jmp 0x4650d9
cmp ebx, dword [ebp - 0x1c]
jge 0x4650ab
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + ebx]
mov ecx, dword [ebp - 0x1c]
sub ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00464788
jmp 0x4650ab
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax], 4
lea eax, [ebp - 0x10]
call fcn.004048a4
mov byte [eax + 1], 1
lea eax, [ebp - 0x10]
call fcn.004048a4
movzx edx, si
shr edx, 8
and dl, 0xff
mov byte [eax + 2], dl
lea eax, [ebp - 0x10]
call fcn.004048a4
mov edx, esi
and dl, 0xff
mov byte [eax + 4], dl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
call fcn.0040464c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x464f54
lea eax, [ebp - 0x10]
call fcn.004048a4
add eax, 8
push eax
mov eax, dword [ebp - 4]
add eax, 0x70
call fcn.004048a4
mov ecx, dword [ebp - 0x1c]
pop edx
call fcn.00402c84
mov ebx, dword [ebp - 0x1c]
add ebx, 8
inc ebx
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [ebx + 1]
mov byte [eax + edx - 2], 0
mov eax, dword [ebp - 0xc]
call fcn.0040484c
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebp - 0x14], esi
inc esi
jne 0x465021
mov eax, dword [ebp - 4]
cmp byte [eax + 0x68], 0
je 0x464fe1
mov eax, dword [ebp - 0xc]
call fcn.0040464c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
call fcn.004048a4
add eax, 4
mov dword [eax], 0xff000000
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [ebx + 1]
lea eax, [eax + edx - 1]
push eax
lea eax, [ebp - 0xc]
call fcn.004048a4
mov ecx, dword [ebp - 0x1c]
pop edx
call fcn.00402c84
add ebx, dword [ebp - 0x1c]
inc ebx
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [ebx + 1]
mov byte [eax + edx - 2], 0
jmp 0x465039
mov eax, dword [ebp - 0xc]
call fcn.0040484c
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x465017
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + 4]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, 4
call fcn.00402c84
jmp 0x465039
call fcn.00403da8
jmp 0x4650d9
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + 4]
lea eax, [ebp - 0x14]
mov ecx, 4
call fcn.00402c84
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
push eax
push 0x400
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
call fcn.004048a4
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00465108
test al, al
jne 0x46506f
call fcn.00403da8
jmp 0x4650d9
mov eax, dword [ebp - 0x10]
cmp byte [eax + 1], 0x5a
jne 0x46507f
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x465086
call fcn.00403da8
jmp 0x4650d9
cmp dword [ebp - 8], 0
jne 0x4650ab
cmp dword [ebp - 0x1c], 8
jle 0x4650ab
lea eax, [ebp - 0x10]
call fcn.004048a4
lea edx, [eax + 8]
mov ecx, dword [ebp - 0x1c]
sub ecx, 8
mov eax, dword [ebp - 4]
call fcn.00464788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4650d9
cmp dword [ebp - 8], 0
je 0x4650d1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 4
jne 0x4650d1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004636dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4650fb
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004043b0
ret