Function at 0x478800
Capabilities:
Check os version
Get disk information
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x4ac3b8]
mov edx, dword [0x49eabc]
mov dword [esp + 0x244], eax
mov eax, dword [0x49eab4]
push ebp
mov ebp, ecx
mov cx, word [0x49eab8]
mov dword [esp + 0x1c], eax
mov ax, word [0x49eac0]
mov word [esp + 0x20], cx
mov ecx, dword [0x49eaac]
mov word [esp + 0x26], ax
mov eax, dword [0x49eaa4]
mov dword [esp + 0x28], ecx
mov cx, word [0x49eaa8]
mov dword [esp + 0x2e], eax
mov ax, word [0x49eaa0]
push esi
mov dword [esp + 0x26], edx
mov dx, word [0x49eab0]
mov word [esp + 0x36], cx
push edi
xor esi, esi
mov word [esp + 0x40], ax
xor eax, eax
mov word [esp + 0x34], dx
mov edx, dword [0x49ea9c]
mov word [esp + 0x44], si
mov ecx, 0x82
lea edi, [esp + 0x46]
rep stosd dword es:[edi], eax
mov ecx, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], edx
call fcn.004783b0
cmp dword [ebp + 8], 0xa
je 0x4788c4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x244]
call fcn.0045015b
add esp, 0x248
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebx
mov dword [esp + 0x20], 0xffffffff
xor edi, edi
lea ebx, [esp + 0x28]
lea esp, [esp]
push ebx
call esi
cmp eax, 3
je 0x4788f3
inc edi
add ebx, 6
cmp edi, 5
jl 0x4788e0
jmp 0x4788f7
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREBaDuPcd
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4789e9
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4789ce
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 3
mov byte [esp + 0x1b], 1
call fcn.004782a0
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.PCode
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._4792_7625_80AB52DF1A79
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 1
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.004782a0
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 1
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:Documents_and_SettingsDefault_UserLocal_SettingsTempTemppc.bak
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478ac3
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478ab4
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 2
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._4792_7625_80AB52DF1A79
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 2
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.004782a0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
test esi, esi
jl 0x478bd2
push str.ms0.dat
lea eax, [esi + esi*2]
push str.MSOCache_
lea ecx, [esp + eax*2 + 0x30]
push ecx
lea edx, [esp + 0x54]
push str._s_s_s
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478bce
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478bbf
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x30
lea edx, [esp + 0x1f]
push edx
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 3
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._4792_7625_80AB52DF1A79
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 3
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.004782a0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPICheck
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x478cc8
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478cad
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x1c], 3
mov byte [esp + 0x1b], 5
call fcn.004782a0
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x49e928
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._40AE_46CD_23176EF35361
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 5
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.004782a0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 1
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:WINDOWSgsyspd.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478da6
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478d97
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 4
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 4
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.004782a0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
test esi, esi
jl 0x478fd6
push str.giex
lea edi, [esi + esi*2]
push str.ghos_
lea edi, [esp + edi*2 + 0x30]
push edi
lea eax, [esp + 0x54]
push str._s_s_s
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478eb5
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478ea6
push 0
lea edx, [esp + 0x1c]
push edx
push 0x30
lea eax, [esp + 0x1f]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
mov byte [esp + 0x23], 6
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea ecx, [esp + 0x1b]
push ecx
mov ecx, ebp
mov byte [esp + 0x1f], 6
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.004782a0
mov edi, dword [esp + 0x24]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x478eda
test ah, ah
jbe 0x478eda
push str.update.dat
push str._Recycle.Bin_hf_mig__
push edi
push str._s_s_s
lea eax, [esp + 0x58]
push eax
jmp 0x478eef
push str.update.dat
push str.RECYCLER_hf_mig__
push edi
push str._s_s_s
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x478fd2
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x478fc3
push 0
lea eax, [esp + 0x28]
push eax
push 0x30
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 7
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._40AE_46CD_23176EF35361
lea edx, [esp + 0x1b]
push edx
mov ecx, ebp
mov byte [esp + 0x1f], 7
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.004782a0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x20]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.C:WINDOWSmsgpi.log
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4790b4
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4790a5
push 0
lea eax, [esp + 0x28]
push eax
push 0x30
lea ecx, [esp + 0x1f]
push ecx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 8
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea edx, [esp + 0x1b]
push edx
mov ecx, ebp
mov byte [esp + 0x1f], 8
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x51]
mov dword [eax + 8], ecx
mov edx, dword [eax + 0x55]
mov dword [eax + 0xc], edx
mov cl, byte [eax + 0x59]
lea edx, [esp + 0x13]
mov byte [eax], cl
push edx
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.004782a0
mov esi, dword [esp + 0x20]
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
test esi, esi
jl 0x4791bb
push str.wcods.dat
lea eax, [esi + esi*2]
push str.MSOCache_
lea ecx, [esp + eax*2 + 0x30]
push ecx
lea edx, [esp + 0x54]
push str._s_s_s
push edx
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0x14
push 0
push 2
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4791bb
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4791ac
push 0
lea ecx, [esp + 0x28]
push ecx
push 0x30
lea edx, [esp + 0x1f]
push edx
mov ecx, ebp
mov dword [esp + 0x34], 0
mov byte [esp + 0x23], 9
call fcn.004782a0
add eax, 0x31
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea eax, [esp + 0x1b]
push eax
mov ecx, ebp
mov byte [esp + 0x1f], 9
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.004782a0
mov dword [eax + 0x64], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x1c]
push ecx
push str.SOFTWAREG2Pd
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
pop ebx
jne 0x4792a6
mov eax, dword [esp + 0x258]
test eax, eax
je 0x479293
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0x30
mov dword [esp + 0x1c], 3
mov byte [esp + 0x17], 0xa
call fcn.004782a0
mov edx, dword [esp + 0x1c]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x49e810
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x30
push str._3F07_51AB_A8D53F476C3C
lea eax, [esp + 0x17]
push eax
mov ecx, ebp
mov byte [esp + 0x1b], 0xa
call fcn.004782a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.004759c0
lea ecx, [esp + 0xf]
push ecx
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.004782a0
lea esi, [eax + 0x31]
lea edi, [eax + 0x10]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0x51]
mov dword [eax + 8], edx
mov ecx, dword [eax + 0x55]
mov dword [eax + 0xc], ecx
mov dl, byte [eax + 0x59]
mov byte [eax], dl
lea eax, [esp + 0xf]
push eax
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.004782a0
mov dword [eax + 0x64], 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
call fcn.0045015b
add esp, 0x248
ret 4