Function at 0x403920
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4269db
push eax
mov dword fs:[0], esp
sub esp, 0x444
lea eax, [esp + 8]
mov ecx, 0x43457c
push ebx
push esi
push edi
push eax
push 0x20019
push 0
push 0x104
call fcn.0041c613
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xffffffffffffffff
mov ecx, 0x43457c
mov esi, eax
call fcn.0041c662
test esi, esi
push 0x104
mov ecx, 0x43457c
je 0x4039ac
call fcn.0041c613
push eax
push str.register_key_open_error_:___s__r_n
push 0x434580
call fcn.00401370
add esp, 0xc
mov ecx, 0x43457c
push 0xffffffffffffffff
call fcn.0041c662
xor eax, eax
jmp 0x403cd1
call fcn.0041c613
push eax
push str.register_key_open_OK_:___s__r_n
push 0x434580
call fcn.00401370
add esp, 0xc
mov ecx, 0x43457c
push 0xffffffffffffffff
call fcn.0041c662
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x144]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x248]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Product
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
call ebx
test eax, eax
je 0x403a49
push str.register_value_open_error_:__Product__r_n
push 0x434580
call fcn.00401370
add esp, 8
xor eax, eax
jmp 0x403cd1
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc]
and ecx, 3
mov dword [esp + 0x10], 0x104
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.ProductPath
push eax
call ebx
test eax, eax
je 0x403ace
push str.register_value_open_error_:__AppPathName__r_n
push 0x434580
call fcn.00401370
add esp, 8
xor eax, eax
jmp 0x403cd1
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xc]
and ecx, 3
mov dword [esp + 0x10], 0x104
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push 0
push str.Inst
push eax
call ebx
test eax, eax
je 0x403b53
push str.register_value_open_error_:__InstallState__r_n
push 0x434580
call fcn.00401370
add esp, 8
xor eax, eax
jmp 0x403cd1
push 0x43233c
lea ecx, [esp + 0x20]
call fcn.0041c375
mov esi, eax
mov ecx, dword [0x43270c]
lea edx, [esp + 0x40]
mov dword [esp + 0x18], ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x45c], 0
call fcn.0041c490
mov esi, dword [esi]
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.0040c46d
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0041c34b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x458], 0xffffffff
call fcn.0041c34b
test bl, bl
je 0x403bd5
push str.InstallState_is_not_OK___r_n
push 0x434580
call fcn.00401370
add esp, 8
xor eax, eax
jmp 0x403cd1
lea eax, [esp + 0x248]
push eax
push str.szLaunchFileName_:__s_r_n
push 0x434580
call fcn.00401370
lea ecx, [esp + 0x150]
push ecx
push str.szWorkingPath_:__s_r_n
push 0x434580
call fcn.00401370
mov edx, dword [esp + 0x2c]
add esp, 0x18
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x350]
mov dword [esp + 0x24], str.DriverAutoInstallDriver.exe
push eax
mov dword [esp + 0x2c], str.DriverInstallWindowHook.dll
mov dword [esp + 0x30], str.HSPA_USB_Modem.exe
mov dword [esp + 0x34], str.config.ini
mov dword [esp + 0x38], str.DatabaseBasic.dat
mov dword [esp + 0x3c], str.Databasedata.dat
mov dword [esp + 0x40], str.LanguageLanguage.dat
mov dword [esp + 0x44], str.LanguageSetup.dat
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x144]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.00403810
add esp, 8
test al, al
jne 0x403c94
xor eax, eax
jmp 0x403cd1
xor esi, esi
lea edi, [esp + 0x20]
mov ecx, dword [edi]
lea eax, [esp + 0x144]
push eax
push ecx
call fcn.00403810
add esp, 8
test al, al
je 0x403c90
inc esi
add edi, 4
cmp esi, 8
jb 0x403c9a
push str.CheckInstallState_PASS___r_n
push 0x434580
call fcn.00401370
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x450
ret