Function at 0x402990
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x14], edi
push edi
push edi
push 0xffffffffffffffff
push str.RDBios32.RDBios
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x4029f0
push esi
push edi
push 0xffffffffffffffff
push str.RDBios32.RDBios
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov esi, eax
test esi, esi
jl 0x402a1a
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x30]
push ecx
push 0x4214c0
push 0x17
push 0
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x402bc7
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x7c]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0040caf5
add esp, 4
test eax, eax
je 0x402ac1
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x402a9c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040c710
mov ecx, dword [ebp - 0x10]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x288]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040caf5
add esp, 4
test eax, eax
je 0x402b36
mov eax, dword [ebp - 0x18]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x402adf
xor esi, esi
jmp 0x402b11
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040c710
mov edx, dword [ebp - 0x10]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x2a8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0040caf5
add esp, 4
test eax, eax
je 0x402bab
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x402b54
xor esi, esi
jmp 0x402b86
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040c710
mov edx, dword [ebp - 0x10]
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x2c8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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, [ebx + 0x288]
push str.Unknown
push ecx
call fcn.0040c0d6
add esp, 8
test eax, eax
jne 0x402d91
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x30], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28], edx
push eax
push ecx
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push str.C:hp_binhpdmi.exe_r___C:hp_binEISHWD.ini
push edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x74], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402c94
mov edx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
push ecx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.C:hp_binEISHWD.ini
lea edx, [ebx + 0x288]
push 0x20
push edx
push 0x424bf0
push str.PCTYPE
push str.Bios_Strings
call esi
push str.C:hp_binEISHWD.ini
lea eax, [ebx + 0x2c8]
push 0x20
push eax
push 0x424bf0
push str.Channel
push str.Bios_Strings
call esi
push str.C:hp_binEISHWD.ini
add ebx, 0x2a8
push 0x20
push ebx
push 0x424bf0
push str.Build_ID
push str.Bios_Strings
call esi
jmp 0x402d91
lea ecx, [ebx + 0x40c]
lea edx, [ebp - 0x174]
push ecx
push str._shpqnt.dll
push edx
call fcn.0040c6b2
add esp, 0xc
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x424bd0], eax
je 0x402d91
push str.hpqGetBrand
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x424bd4], eax
je 0x402d91
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, 7
ja case.default.0x402cfa
jmp dword [eax*4 + 0x402dd0]
lea edx, [ebx + 0x288]
mov edi, str.Unknown_Brand
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.PRESARIO
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.PAVILION
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.COMMERCIA
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, 0x4213f4
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.TABLET_PC_SMB
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.TABLE_PC_COMMERCIAL
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.TABLET_PC_CONSUMER
jmp 0x402d74
lea edx, [ebx + 0x288]
mov edi, str.OTHER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x402da8
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x402db9
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x180]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret