Function at 0x4049d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x920
mov eax, dword [esp + 0x930]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
dec eax
cmp eax, 6
push esi
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xff
ja case.default.0x404a06
movzx eax, byte [eax + 0x404d44]
jmp dword [eax*4 + 0x404d3c]
mov esi, 0x412b40
jmp 0x404a2c
mov ecx, 0xb
mov esi, str.SYSTEMCurrentControlSetServicesClassModem
lea edi, [esp + 0x130]
jmp 0x404a38
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E96D_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x130]
mov ecx, 0x13
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x13c]
push edx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d2e
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
lea edx, [esp + 0x44]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404d14
mov ebp, dword [esp + 0x28]
dec ebp
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jl 0x404d14
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404ccb
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0xff
mov edi, edi
mov cl, byte [esp + eax + 0x130]
mov byte [esp + eax + 0x530], cl
inc eax
cmp cl, bl
jne 0x404ad0
mov eax, 0x412c10
mov edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404af0
lea edi, [esp + 0x530]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404b01
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404b20
lea edi, [esp + 0x530]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404b33
mov ecx, eax
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, [esp + 0x10]
push ecx
push 0x2001f
push ebx
lea edx, [esp + 0x53c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ccb
mov esi, dword [esp + 0x934]
mov eax, esi
lea edx, [eax + 1]
jmp 0x404b80
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404b80
sub eax, edx
add eax, 2
push 1
push eax
call fcn.004084a9
mov ebp, eax
mov eax, dword [esp + 0x940]
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404ba3
sub eax, ecx
add eax, 2
push 1
push eax
call fcn.004084a9
mov edi, eax
mov eax, esi
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404bc1
mov edx, dword [esp + 0x10]
sub eax, ecx
add eax, 2
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push ebp
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.AttachedTo
push edx
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404cad
mov eax, dword [esp + 0x934]
mov esi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404c2a
cmp cl, bl
je 0x404c26
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404c2a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404c06
xor eax, eax
jmp 0x404c2f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x404cad
mov eax, dword [esp + 0x938]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404c40
sub eax, edx
mov edx, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.Model
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404cad
mov eax, dword [esp + 0x938]
mov esi, edi
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404ca4
cmp cl, bl
je 0x404ca0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404ca4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x404c80
xor eax, eax
jmp 0x404ca9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404cf0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.004081c0
push edi
call fcn.004081c0
mov ebp, dword [esp + 0x24]
add esp, 8
dec ebp
mov dword [esp + 0x1c], ebp
jns 0x404aa0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x920
ret
mov ecx, dword [esp + 0x93c]
mov edx, dword [esp + 0x10]
push ebp
mov dword [esp + 0x28], 1
mov dword [ecx], edx
call fcn.004081c0
push edi
call fcn.004081c0
add esp, 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x920
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x920
ret