Function at 0x4014d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4335c8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x442630]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x442630]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov eax, dword [esp + 0xac]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 1
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesCdromEnum
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x401726
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push str.Count
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], 4
call esi
test eax, eax
je 0x40157c
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401726
mov eax, dword [esp + 0x24]
cmp eax, 0xffff
jbe 0x401590
mov eax, 0xffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
xor edi, edi
mov dword [esp + 0xa4], ebx
cmp eax, ebx
jbe 0x4016fc
push edi
lea eax, [esp + 0x8c]
push 0x439d68
push eax
call fcn.0041fc13
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x98]
push edx
push eax
call esi
test eax, eax
jne 0x4016fc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
ja 0x401600
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.004025f0
jmp 0x401616
push ebx
mov ebx, eax
sub ebx, ecx
lea esi, [esp + 0x38]
call fcn.00402210
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ebx, ebx
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x401625
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
lea edx, [esp + 0x98]
push edx
push eax
call esi
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x40164b
lea eax, [esp + 0x38]
push 0x43985c
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x401750
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x401670
lea eax, [esp + 0x38]
push 0x439864
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x401750
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x401695
lea eax, [esp + 0x38]
push 0x439870
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x401750
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x4016ba
lea eax, [esp + 0x38]
push 0x439874
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x401750
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x4016df
lea eax, [esp + 0x38]
push 0x43987c
push eax
call fcn.0041fd80
add esp, 8
test eax, eax
jne 0x401750
inc edi
cmp edi, dword [esp + 0x24]
jb 0x4015b1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xa4], 0xffffffff
cmp dword [esp + 0x4c], 0x10
jb 0x401726
mov edx, dword [esp + 0x38]
push edx
call fcn.00403083
add esp, 4
xor al, al
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0041f80f
add esp, 0x94
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
push str.SYSTEMMountedDevices
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x401707
mov eax, dword [str.DosDevicesA:]
mov ecx, dword [0x4398c8]
mov edx, dword [0x4398cc]
mov dword [esp + 0x88], eax
mov ax, word [0x4398d0]
mov dword [esp + 0x8c], ecx
mov cl, byte [0x4398d2]
mov word [esp + 0x94], ax
mov eax, 0xf
mov dword [esp + 0x90], edx
mov byte [esp + 0x96], cl
mov byte [esp + 0x17], 0x41
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
push ebx
mov ebx, 0x100
lea esi, [esp + 0x70]
mov byte [esp + 0xa8], 2
call fcn.00402210
mov dword [esp + 0x30], 0
jmp 0x401800
mov esi, 1
cmp dword [esp + 0x68], esi
jae 0x40181a
mov edx, dword [esp + 0x64]
push edx
push esi
lea ecx, [esp + 0x58]
call fcn.00402790
mov eax, dword [esp + 0x54]
mov ecx, 0x10
cmp dword [esp + 0x68], ecx
jae 0x40182d
lea eax, [esp + 0x54]
mov bl, byte [esp + 0x17]
mov byte [eax], bl
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], esi
cmp dword [esp + 0x68], ecx
jae 0x401845
lea eax, [esp + 0x54]
push 2
mov byte [eax + 1], 0
push 0x4398d4
lea eax, [esp + 0x58]
call fcn.00402400
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x98]
push ecx
push edx
mov byte [esp + 0xac], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401a49
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
ja 0x4018a0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call fcn.004025f0
jmp 0x4018af
mov ebx, eax
push 0
sub ebx, ecx
lea esi, [esp + 0x38]
call fcn.00402210
mov eax, dword [esp + 0x38]
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jae 0x4018c2
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea edx, [esp + 0x98]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x4c], esi
mov esi, dword [esp + 0x38]
jae 0x4018ef
lea esi, [esp + 0x38]
jmp 0x4018f7
test esi, esi
je 0x401a49
mov eax, esi
mov edi, esi
sub eax, str.Qualcomm
sub edi, 0x4398f4
mov ebp, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
sub ebp, str.Global
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x401925
lea eax, [esp + 0x38]
mov ecx, esi
sub ecx, eax
cmp ecx, dword [esp + 0x48]
jae 0x401a49
mov bl, byte [esi]
cmp bl, 0x47
jne 0x40195c
mov ecx, 0xc
mov eax, str.Global
cmp ecx, 4
jb 0x401aee
mov edx, dword [eax + ebp]
cmp edx, dword [eax]
jne 0x40195c
sub ecx, 4
add eax, 4
jmp 0x401944
cmp bl, 0x42
jne 0x401988
mov ecx, 0x10
mov eax, 0x4398f4
jmp 0x401970
cmp ecx, 4
jb 0x401ba9
mov edx, dword [edi + eax]
cmp edx, dword [eax]
jne 0x401988
sub ecx, 4
add eax, 4
jmp 0x401970
cmp bl, 0x43
jne 0x4019ca
mov edx, 0x32
mov eax, str.CdRomVen_USBModemProd_MMC_StorageRev_2.31
mov ecx, esi
lea esp, [esp]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x4019c6
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x4019a0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4019c6
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
je 0x401c0f
mov edi, dword [esp + 0x28]
cmp bl, 0x51
jne 0x4019fc
mov ecx, 0x10
mov eax, str.Qualcomm
lea esp, [esp]
cmp ecx, 4
jb 0x401c16
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + eax]
cmp edx, dword [eax]
jne 0x4019fc
sub ecx, 4
add eax, 4
jmp 0x4019e0
cmp bl, 0x41
jne 0x401a36
mov edx, 0xe
mov eax, str.ALCATEL
mov ecx, esi
lea ecx, [ecx]
mov ebx, dword [ecx]
cmp ebx, dword [eax]
jne 0x401a36
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x401a10
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401a36
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
je 0x401ba9
inc dword [esp + 0x2c]
inc esi
inc edi
inc ebp
mov dword [esp + 0x28], edi
test esi, esi
jne 0x401916
mov eax, dword [esp + 0x30]
inc byte [esp + 0x17]
inc eax
mov dword [esp + 0x30], eax
cmp eax, 0x20
jb 0x401800
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x10
mov byte [esp + 0xa4], 1
cmp dword [esp + 0x84], esi
jb 0x401a8d
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00403083
add esp, 4
xor edi, edi
mov ebx, 0xf
mov byte [esp + 0xa4], 0
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
cmp dword [esp + 0x68], esi
jb 0x401ac2
mov edx, dword [esp + 0x54]
push edx
call fcn.00403083
add esp, 4
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
cmp dword [esp + 0x4c], esi
jb 0x401726
mov eax, dword [esp + 0x38]
push eax
jmp 0x40171e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
push 4
push str.._
mov ecx, esi
call fcn.00402510
mov bl, byte [esp + 0x17]
call fcn.00402180
push 1
push 0x4398f0
mov eax, esi
call fcn.00402400
mov esi, 0x10
mov byte [esp + 0xa4], 1
cmp dword [esp + 0x84], esi
jb 0x401b45
mov edx, dword [esp + 0x70]
push edx
call fcn.00403083
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov byte [esp + 0xa4], bl
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0x68], esi
jb 0x401b78
mov eax, dword [esp + 0x54]
push eax
call fcn.00403083
add esp, 4
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], esi
jb 0x401ba2
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00403083
add esp, 4
mov al, 1
jmp 0x401728
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
push esi
call fcn.00402130
mov bl, byte [esp + 0x17]
call fcn.00402180
push esi
mov edx, 0x4398f0
call fcn.00402160
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa4], 1
call fcn.00402100
lea ecx, [esp + 0x50]
mov byte [esp + 0xa4], 0
call fcn.00402100
lea ecx, [esp + 0x34]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00402100
mov al, 1
jmp 0x401728
mov eax, dword [esp + 0x18]
push eax
jmp 0x401bae
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x401bae