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

Disassembly:
sub esp, 0x248
mov eax, dword [0x48644c]
mov edx, dword [0x47c22c]
mov dword [esp + 0x244], eax
mov eax, dword [0x47c224]
push ebp
mov ebp, ecx
mov cx, word [0x47c228]
mov dword [esp + 0x1c], eax
mov ax, word [0x47c230]
mov word [esp + 0x20], cx
mov ecx, dword [0x47c21c]
mov word [esp + 0x26], ax
mov eax, dword [0x47c214]
mov dword [esp + 0x28], ecx
mov cx, word [0x47c218]
mov dword [esp + 0x2e], eax
mov ax, word [0x47c210]
push esi
mov dword [esp + 0x26], edx
mov dx, word [0x47c220]
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 [0x47c20c]
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.004624b0
cmp dword [ebp + 8], 0xa
je 0x4629c4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x244]
call fcn.00436153
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 0x4629f3
inc edi
add ebx, 6
cmp edi, 5
jl 0x4629e0
jmp 0x4629f7
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 0x462ae9
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462ace
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 1
call fcn.004623a0
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.004623a0
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 0x462bc3
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462bb4
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 2
call fcn.004623a0
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.004623a0
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 0x462cd2
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 0x462cce
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462cbf
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 3
call fcn.004623a0
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.004623a0
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 0x462dc8
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462dad
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.004623a0
mov edx, dword [esp + 0x20]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x47c098
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 5
call fcn.004623a0
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.004623a0
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 0x462ea6
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462e97
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 4
call fcn.004623a0
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.004623a0
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 0x4630d6
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 0x462fb5
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x462fa6
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 6
call fcn.004623a0
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.004623a0
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 0x462fda
test ah, ah
jbe 0x462fda
push str.update.dat
push str._Recycle.Bin_hf_mig__
push edi
push str._s_s_s
lea eax, [esp + 0x58]
push eax
jmp 0x462fef
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 0x4630d2
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4630c3
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 7
call fcn.004623a0
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.004623a0
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 0x4631b4
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4631a5
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 8
call fcn.004623a0
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.004623a0
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 0x4632bb
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 0x4632bb
mov eax, dword [esp + 0x25c]
test eax, eax
je 0x4632ac
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.004623a0
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 9
call fcn.004623a0
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.004623a0
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 0x4633a6
mov eax, dword [esp + 0x258]
test eax, eax
je 0x463393
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.004623a0
mov edx, dword [esp + 0x1c]
add eax, 0x31
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x47bf50
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.004623a0
add eax, 0x31
push eax
mov ecx, ebp
call fcn.0045fac0
lea ecx, [esp + 0xf]
push ecx
mov ecx, ebp
mov byte [esp + 0x13], 0xa
call fcn.004623a0
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.004623a0
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.00436153
add esp, 0x248
ret 4