Function at 0x405340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f15
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0x200
call fcn.00404f60
mov ecx, 0x453430
mov eax, 0x45c9a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40539d
test dx, dx
je 0x405399
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40539d
add eax, 4
add ecx, 4
test dx, dx
jne 0x405377
xor eax, eax
jmp 0x4053a2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40547f
mov ecx, str.12345678_1234_5678_90AB_CDDEEFAABBCC
mov eax, 0x45c9a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053da
test dx, dx
je 0x4053d6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053da
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053b4
xor eax, eax
jmp 0x4053df
sbb eax, eax
or eax, 1
test eax, eax
je 0x40547f
mov ecx, str.00000000_0000_0000_0000_000000000000
mov eax, 0x45c9a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405417
test dx, dx
je 0x405413
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405417
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053f1
xor eax, eax
jmp 0x40541c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40547f
mov ecx, str.FFFFFFFF_FFFF_FFFF_FFFF_FFFFFFFFFFFF
mov eax, 0x45c9a0
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405456
test dx, dx
je 0x405452
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405456
add eax, 4
add ecx, 4
test dx, dx
jne 0x405430
xor eax, eax
jmp 0x40545b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40547f
mov ecx, 0x45c9a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405467
sub ecx, edx
sar ecx, 1
cmp ecx, 0x24
je 0x40561d
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x40562e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.UU1EUlU_UENaS2dhcG1xbWRyWkFwd25ybWVwX25mdw
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00403570
test al, al
jne 0x4054c0
push 0x2c
push str.UU1EUlU_UENaS2dhcG1xbWRyWkFwd25ybWVwX25mdw
lea ecx, [ebp - 0x14]
call fcn.004039f0
mov dword [ebp - 4], 1
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x405638
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push str.S19hZmdsY0VzZ2I
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403570
test al, al
jne 0x405505
push 0x10
push str.S19hZmdsY0VzZ2I
lea ecx, [ebp - 0x18]
call fcn.004039f0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x14]
push eax
push 0x101
push 0
push ecx
add ebx, 0xfffffff0
mov esi, esp
mov ecx, ebx
mov dword [ebp - 0x10], esi
call fcn.00403800
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
push 0
push ecx
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00403800
add eax, 0x10
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4055bd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x228]
push eax
call fcn.0042cda6
add esp, 4
push eax
push str._wsX
push 0x45c9a0
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405604
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40561d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013d0
push 0x80004005
call fcn.004013d0
int3