Function at 0x465f90
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bb40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
push ebx
push esi
mov dword [ebp - 0x34], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1f3]
mov byte [ebp - 0x1f4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xf0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0xf0], 0x9c
call esi
test eax, eax
jne 0x466032
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x94
push ecx
call esi
test eax, eax
jne 0x466032
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x1f4]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp - 0xec]
lea edx, [ebp - 0x1f4]
cmp eax, 5
mov edi, str.hosts
jb 0x46605f
mov edi, str.System32DriversEtchosts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x48]
call fcn.0048883e
push 0
lea eax, [ebp - 0x1f4]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00488950
test eax, eax
je 0x4664f0
lea ecx, [ebp - 0x48]
call fcn.00488c4a
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00484998
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea edi, [ebx*4]
push edi
call fcn.00484998
mov edx, eax
mov ecx, edi
mov dword [ebp - 0x38], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 8
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp - 0x24]
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.00488a6d
lea ecx, [ebp - 0x48]
mov byte [edi + esi], 0
call fcn.00488b6b
push edi
lea ecx, [ebp - 0x14]
call fcn.004844a1
mov eax, dword [0x4be818]
mov dword [ebp - 0x20], eax
test ebx, ebx
mov byte [ebp - 4], 2
jbe 0x466207
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x38]
sub edi, esi
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
push str.localhost
push eax
call fcn.0046f2f7
add esp, 8
test eax, eax
je 0x4661f7
mov eax, dword [esi]
push 0x4c2d98
push eax
call fcn.0046f2f7
add esp, 8
test eax, eax
je 0x4661f7
push esi
lea ecx, [ebp - 0x1c]
push str.__n_r_t_
push ecx
call fcn.0048473c
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.0048241d
test eax, eax
jge 0x4661b6
push esi
lea edx, [ebp - 0x2c]
push 0x4b8630
push edx
call fcn.0048473c
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call fcn.0048241d
test eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
setge bl
call fcn.00484433
test bl, bl
je 0x4661b8
mov bl, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00484433
test bl, bl
je 0x4661f7
push 0x4b96b0
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [edi + esi], 1
call fcn.004846c8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0048484b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00484433
mov eax, dword [ebp - 0x28]
add esi, 4
dec eax
mov dword [ebp - 0x28], eax
jne 0x466131
mov ecx, dword [ebp - 0x20]
push 0x4c2d98
push ecx
call fcn.0046f2f7
add esp, 8
test eax, eax
je 0x4664c3
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push 0x4be6ac
push eax
call fcn.0048473c
push 0x4be680
lea ecx, [ebp - 0x18]
mov ebx, 6
push eax
push ecx
mov byte [ebp - 4], bl
call fcn.004846c8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
push 0x24
push 0x4b8e50
push eax
mov byte [ebp - 4], 7
call fcn.00486e02
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.00484433
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00484433
cmp esi, ebx
je 0x466288
mov dword [ebp - 0x30], 0
jmp 0x4664c3
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4663d0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
sub ecx, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 8], eax
jmp 0x4662a9
mov ecx, dword [ebp - 0x18]
cmp dword [ebx + ecx], 0
je 0x4663bd
mov edx, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x1c]
push str.__n_r_t_
mov edi, dword [edx - 8]
push eax
call fcn.0048473c
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 8
call fcn.0048241d
lea ecx, [ebp - 0x1c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00484433
test esi, esi
jge 0x46631d
push ebx
lea ecx, [ebp - 0x2c]
push 0x4b8630
push ecx
call fcn.0048473c
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.0048241d
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00484433
test esi, esi
jl 0x4663bd
cmp esi, edi
mov eax, esi
jge 0x46633a
mov ebx, dword [ebp - 0x24]
mov cl, byte [eax + ebx]
cmp cl, 0xd
je 0x46633d
cmp cl, 0xa
je 0x46633d
inc eax
cmp eax, edi
jl 0x466323
jmp 0x46633d
mov ebx, dword [ebp - 0x24]
mov edx, eax
mov eax, esi
test esi, esi
jl 0x466355
mov cl, byte [eax + ebx]
cmp cl, 0xa
je 0x466355
cmp cl, 0xd
je 0x466355
dec eax
jns 0x466345
sub edi, edx
lea edx, [ebp - 0x50]
push edi
push edx
lea ecx, [ebp - 0x14]
lea esi, [eax + 1]
call fcn.004822dc
mov edi, eax
lea eax, [ebp - 0x4c]
push esi
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00482358
push edi
lea ecx, [ebp - 0x28]
push eax
push ecx
mov byte [ebp - 4], 0xb
call fcn.00484662
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xc
call fcn.0048456c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.00484433
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00484433
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00484433
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add ebx, 4
dec eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], eax
jne 0x4662a6
push str._r_n_r_n
lea ecx, [ebp - 0x14]
call fcn.0048241d
test eax, eax
jl 0x466404
push 0x4b96b0
push str._r_n_r_n
lea ecx, [ebp - 0x14]
call fcn.004820c0
push str._r_n_r_n
lea ecx, [ebp - 0x14]
call fcn.0048241d
test eax, eax
jge 0x4663e1
push 0
lea edx, [ebp - 0x1f4]
push 1
push edx
lea ecx, [ebp - 0x48]
call fcn.00488950
test eax, eax
je 0x4664af
lea ecx, [ebp - 0x54]
call fcn.004887e2
mov eax, dword [ebp - 0x48]
push 0
push 0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call dword [eax + 0x28]
mov ecx, dword [ebp - 0x14]
push 0
mov esi, dword [ecx - 8]
lea ecx, [ebp - 0x14]
call fcn.00484863
push esi
push eax
lea ecx, [ebp - 0x48]
call fcn.00488aa7
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
mov eax, dword [edx - 8]
push eax
call fcn.00488c1e
mov dword [ebp - 4], 2
call fcn.00488820
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004848b2
lea ecx, [ebp - 0x48]
call fcn.00488b6b
jmp 0x4664c3
mov ecx, dword [ebp - 0x34]
push 0x10
push 0x4bc3d4
push 0x4be648
call fcn.00486e02
mov eax, dword [ebp - 0x38]
push eax
call fcn.004849c1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004849c1
add esp, 8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00484433
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00484433
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00488893
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8