Function at 0x411ec0
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e1a87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0xc], ebp
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x450], ebx
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push 0x4e94ac
push closesocket
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x411f6d
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push ebx
push str.nohosts
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411f69
mov dword [esp + 0x450], 0xffffffff
cmp esi, ebx
je 0x411f62
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
xor eax, eax
jmp 0x41219e
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00410050
add esp, 4
mov byte [esp + 0x454], 1
lea ecx, [esp + 0x28]
call fcn.004173d0
test eax, eax
je 0x41216f
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x10], edi
mov byte [esp + 0x454], 2
cmp edi, 0xffffffff
jne 0x411ffe
mov byte [esp + 0x454], 1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.00417490
mov dword [esp + 0x454], edi
cmp ebp, ebx
je 0x411ff7
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
xor eax, eax
jmp 0x41219d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edx, [esi + 1]
push edx
lea ecx, [esp + 0x34]
call fcn.00411e50
mov byte [esp + 0x454], 3
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x48], ebx
jne 0x412030
call fcn.0047a3ff
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x4c]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412147
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x24], 1
cmp esi, eax
jb 0x412064
call fcn.0047a3ff
mov ecx, dword [esp + 0x3c]
mov byte [ecx + esi], bl
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x3c]
jne 0x41207a
call fcn.0047a3ff
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
call fcn.00418220
mov byte [esp + 0x454], 4
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], ebx
jl 0x412136
push str.mail.ru
push ecx
call fcn.0047a849
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x4120c0
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4121ba
cmp dword [ecx - 0xc], ebx
jl 0x412136
push str.yandex.ru
push ecx
call fcn.0047a849
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x4120e8
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4121ba
cmp dword [ecx - 0xc], ebx
jl 0x412136
push str.ya.ru
push ecx
call fcn.0047a849
mov ecx, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x412110
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4121ba
cmp dword [ecx - 0xc], ebx
jl 0x412136
push str.yandex.net
push ecx
call fcn.0047a849
add esp, 8
cmp eax, ebx
je 0x412136
sub eax, dword [esp + 0x1c]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4121ba
mov byte [esp + 0x454], 3
lea ecx, [esp + 0x1c]
call fcn.00417490
mov byte [esp + 0x454], 2
lea ecx, [esp + 0x30]
call fcn.0041c810
mov byte [esp + 0x454], 1
cmp edi, ebx
je 0x41216f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.00417490
mov dword [esp + 0x454], 0xffffffff
cmp ebp, ebx
je 0x412199
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
pop edi
mov ecx, dword [esp + 0x448]
pop esi
mov dword [esp + 0x10], ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x448
ret
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 3
cmp edi, ebx
je 0x4121d3
push edi
call ebp
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov edi, 0xb
cmp esi, 0xffffffff
jne 0x4121fe
mov edi, dword [esp + 0x24]
mov byte [esp + 0x454], 3
lea ecx, [esp + 0x1c]
call fcn.00417490
mov byte [esp + 0x454], 2
lea ecx, [esp + 0x30]
call fcn.0041c810
mov byte [esp + 0x454], 1
cmp esi, ebx
je 0x412233
push esi
call ebp
mov dword [esp + 0x10], ebx
mov byte [esp + 0x454], bl
lea ecx, [esp + 0x28]
call fcn.00417490
mov dword [esp + 0x454], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x412261
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, edi
jmp 0x41219d