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

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0xe8
push 0xffffffffffffffff
push 0x4ae1d2
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4e8008]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xf0]
mov ebx, dword [ebp + 0xf8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
push 2
pop edx
mov byte [ebp - 4], dl
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x44081b
push 0x13
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xf4]
call fcn.00402d3f
mov byte [ebp - 4], 3
mov ecx, eax
push str.HKEY_LOCAL_MACHINE_
call fcn.00401f00
push 2
mov esi, eax
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x10]
call fcn.004019df
push 0x12
test esi, esi
jne 0x4406cb
mov eax, connect
jmp 0x440709
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xf4]
call fcn.00402d3f
mov byte [ebp - 4], 4
mov ecx, eax
push str.HKEY_CURRENT_USER_
call fcn.00401f00
push 2
mov esi, eax
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x10]
call fcn.004019df
test esi, esi
jne 0x440811
push 0x11
mov eax, connect
pop esi
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0xf4]
push esi
xor eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402c3c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x18]
call fcn.00402ddd
lea ecx, [esi + 1]
mov edi, eax
push ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xf4]
call fcn.00402ca9
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xf4]
push eax
call fcn.00402d8e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.004019df
push edi
mov ecx, ebx
call fcn.0048f6b0
mov esi, eax
mov ebx, fcn.00403410
test esi, esi
je 0x44077e
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x44077e
mov eax, esi
jmp 0x440780
xor eax, eax
test eax, eax
jne 0x4407cd
push 0x50
call fcn.0041395c
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
mov ecx, eax
mov dword [esp], 0x4bb248
call fcn.0048fa20
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.0048fa70
test esi, esi
je 0x4407be
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x4407be
mov ecx, esi
jmp 0x4407c2
xor eax, eax
mov ecx, eax
push edi
push str.name
call fcn.0048fb30
test esi, esi
je 0x4407d8
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
jne 0x4407dc
xor eax, eax
mov esi, eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 0xf4]
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0040180b
mov byte [ebp - 4], 8
push edi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
call fcn.00440620
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x18]
jmp 0x440eaa
xor esi, esi
inc esi
xor eax, eax
jmp 0x440eb3
mov eax, dword [ebp + 0xf4]
cmp dword [eax - 8], 0
jle 0x440837
push 0x5c
push eax
call fcn.00414ee6
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x44083c
or edi, 0xffffffff
jmp 0x440844
sub edi, dword [ebp + 0xf4]
sar edi, 1
lea eax, [ebp + 0xf4]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040180b
mov byte [ebp - 4], 9
test edi, edi
jle 0x440887
push edi
xor eax, eax
lea ecx, [ebp + 0xf4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402c3c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3c]
push eax
call fcn.00402d8e
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.004019df
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x5c]
call fcn.00402ddd
push eax
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.0048f6b0
mov esi, eax
mov ebx, fcn.00403410
mov dword [ebp - 0x50], esi
test esi, esi
je 0x4408b4
mov ecx, dword [esi]
cmp dword [ecx + 0x14], ebx
je 0x4408b4
jmp 0x4408b6
xor eax, eax
test eax, eax
jne 0x440908
push 0x50
call fcn.0041395c
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
mov dword [esp], 0x4bb248
call fcn.0048fa20
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2c]
push esi
call fcn.0048fa70
test esi, esi
je 0x4408f7
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x4408f7
mov ecx, esi
jmp 0x4408fb
xor eax, eax
mov ecx, eax
push dword [ebp - 0x10]
push str.name
call fcn.0048fb30
lea eax, [ebp - 0x14]
push eax
push connect
xor eax, eax
push eax
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440e5a
test edi, edi
jle 0x440996
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xf4]
call fcn.00402ca9
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xf4]
push eax
call fcn.00402d8e
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.004019df
test esi, esi
je 0x440966
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
jne 0x44096a
xor eax, eax
mov esi, eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp + 0xf4]
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0040180b
mov byte [ebp - 4], 0xd
push edi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c]
call fcn.00440620
jmp 0x440e4f
xor ecx, ecx
lea eax, [ebp - 0x4c]
push ecx
push ecx
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], ecx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
push eax
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x440e4f
mov edi, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x44], eax
jle 0x440a6b
mov eax, dword [ebp - 0x40]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413953
pop ecx
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x440a53
test esi, esi
je 0x440a2b
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x440a2b
mov eax, esi
jmp 0x440a2d
xor eax, eax
mov edi, dword [ebp - 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push dword [ebp - 0x18]
call fcn.00402ae6
mov byte [ebp - 4], 0xe
push edi
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c]
call fcn.00440620
mov edi, dword [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.00413923
inc edi
pop ecx
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x44]
jl 0x4409e0
xor eax, eax
cmp dword [ebp - 0x2c], 0
mov edi, eax
mov dword [ebp - 0x18], edi
jle 0x440e4f
mov eax, dword [ebp - 0x48]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413953
push dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
call fcn.00413953
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
xor edx, edx
inc ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], edx
push eax
push edx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x440e2b
test esi, esi
je 0x440ae6
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x440ae6
mov edi, esi
jmp 0x440aea
xor eax, eax
mov edi, eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
call fcn.00402ddd
push eax
mov ecx, edi
call fcn.0048f6b0
mov edi, eax
test edi, edi
je 0x440b0e
mov eax, dword [edi]
cmp dword [eax + 0x14], ebx
je 0x440b0e
mov eax, edi
jmp 0x440b10
xor eax, eax
test eax, eax
jne 0x440b4f
push 0x50
call fcn.0041395c
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0xf
mov ecx, eax
mov dword [esp], 0x4bb24c
call fcn.0048fa20
mov edi, eax
mov byte [ebp - 4], 9
test esi, esi
je 0x440b45
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
je 0x440b45
mov ecx, esi
jmp 0x440b49
xor eax, eax
mov ecx, eax
push edi
call fcn.0048fa70
test edi, edi
je 0x440b5f
mov eax, dword [edi]
cmp dword [eax + 0x14], ebx
je 0x440b5f
mov dword [ebp - 0x20], edi
jmp 0x440b64
xor eax, eax
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
call fcn.00402ddd
mov ecx, dword [ebp - 0x20]
push eax
push str.name
call fcn.0048fb30
xor eax, eax
push 0x80
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00415710
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp eax, 3
jne 0x440ba0
mov ecx, str.REG_BINARY
jmp 0x440bf8
cmp eax, 4
jne 0x440bac
mov ecx, str.REG_DWORD
jmp 0x440bf8
push 2
pop ecx
cmp eax, ecx
jne 0x440bba
mov ecx, str.REG_EXPAND_SZ
jmp 0x440bf8
cmp eax, 7
jne 0x440bc6
mov ecx, str.REG_MULTI_SZ
jmp 0x440bf8
cmp eax, 0xb
jne 0x440bd2
mov ecx, str.REG_QWORD
jmp 0x440bf8
cmp eax, 1
jne 0x440bde
mov ecx, str.REG_SZ
jmp 0x440bf8
push eax
push str.Unknown_type__0x_08x_
lea eax, [ebp + 0x18]
push 0x80
push eax
call fcn.0040fd6b
add esp, 0x10
lea ecx, [ebp + 0x18]
test edi, edi
je 0x440c07
mov eax, dword [edi]
cmp dword [eax + 0x14], ebx
je 0x440c07
mov eax, edi
jmp 0x440c09
xor eax, eax
push ecx
push str.type
mov ecx, eax
call fcn.0048fb30
mov eax, dword [ebp - 0x28]
cmp eax, 3
jne 0x440cce
xor ecx, ecx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], 0xf
mov byte [ebp], cl
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x38], ecx
jle 0x440c98
mov esi, dword [ebp - 0x24]
mov ebx, ecx
movzx eax, byte [ebx + esi]
push eax
push 0x4bb2bc
lea eax, [ebp + 0xd8]
push 0xa
push eax
call fcn.0040fd6b
add esp, 0x10
lea eax, [ebp + 0xd8]
lea ecx, [ebp]
push eax
call fcn.004030bf
mov eax, dword [ebp - 0x38]
cmp ebx, eax
jge 0x440c89
push 0x4bb2c4
lea ecx, [ebp]
call fcn.004030bf
mov eax, dword [ebp - 0x38]
inc ebx
cmp ebx, eax
jl 0x440c48
mov esi, dword [ebp - 0x50]
mov ebx, fcn.00403410
xor ecx, ecx
test edi, edi
je 0x440ca3
mov eax, dword [edi]
cmp dword [eax + 0x14], ebx
jne 0x440ca5
mov edi, ecx
cmp dword [ebp + 0x14], 0x10
lea eax, [ebp]
mov ecx, edi
cmovae eax, dword [ebp]
push eax
push str.value
call fcn.0048fb30
mov byte [ebp - 4], 9
lea ecx, [ebp]
call fcn.00403129
jmp 0x440e2b
cmp eax, 4
jne 0x440d1b
xor eax, eax
push 0x40
push eax
lea eax, [ebp + 0x98]
push eax
call fcn.00415710
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [eax]
lea eax, [ebp + 0x98]
push str.0x_08x___lu_
push 0x40
push eax
call fcn.0040fd6b
add esp, 0x20
test edi, edi
je 0x440d0c
mov eax, dword [edi]
cmp dword [eax + 0x14], ebx
jne 0x440d10
xor eax, eax
mov edi, eax
lea eax, [ebp + 0x98]
jmp 0x440e1e
cmp eax, 1
je 0x440e04
push 2
pop ecx
cmp eax, ecx
je 0x440e04
cmp eax, 7
jne 0x440e2b
xor eax, eax
mov edx, eax
mov ecx, eax
mov eax, dword [ebp - 0x24]
xor esi, esi
mov dword [ebp - 0x10], eax
cmp word [eax], si
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x20], ecx
jne 0x440dfb
mov eax, dword [ebp - 0x24]
sub ecx, edx
push ecx
lea ecx, [ebp - 0x60]
lea eax, [eax + edx*2]
push eax
call fcn.0040559d
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x60]
call fcn.00402ddd
push 0x50
mov dword [ebp - 0x34], eax
call fcn.0041395c
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0x12
mov ecx, eax
mov dword [esp], 0x4bb2d8
call fcn.0048fa20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x11
test edi, edi
je 0x440dab
mov ecx, dword [edi]
cmp dword [ecx + 0x14], ebx
je 0x440dab
mov ecx, edi
jmp 0x440dad
xor ecx, ecx
push eax
call fcn.0048fa70
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x440dc1
mov eax, dword [ecx]
cmp dword [eax + 0x14], ebx
jne 0x440dc5
xor eax, eax
mov ecx, eax
push dword [ebp - 0x34]
push str.value
call fcn.0048fb30
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
call fcn.004019df
mov eax, dword [ebp - 0x10]
xor ecx, ecx
cmp word [eax], cx
jne 0x440df5
cmp word [eax + 2], cx
je 0x440e2b
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
inc ecx
add eax, 2
jmp 0x440d41
push dword [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00402ddd
test edi, edi
je 0x440e1a
mov ecx, dword [edi]
cmp dword [ecx + 0x14], ebx
jne 0x440e1e
xor ecx, ecx
mov edi, ecx
push eax
push str.value
mov ecx, edi
call fcn.0048fb30
push dword [ebp - 0x1c]
call fcn.00413923
push dword [ebp - 0x24]
call fcn.00413923
mov eax, dword [ebp - 0x18]
inc eax
mov edi, eax
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
cmp eax, dword [ebp - 0x2c]
jl 0x440a7a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x440ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.004372a0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x10]
call fcn.00402ddd
test esi, esi
je 0x440e84
mov ecx, dword [esi]
cmp dword [ecx + 0x14], ebx
jne 0x440e88
xor ecx, ecx
mov esi, ecx
push eax
push str.error
mov ecx, esi
call fcn.0048fb30
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.004019df
push 2
pop eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x3c]
call fcn.004019df
xor eax, eax
mov esi, eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x5c]
call fcn.00401a38
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xf4]
call fcn.004019df
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.00413912
add ebp, 0xe8
leave
ret 0xc