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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d49be
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x50f880]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.0040e640
test al, al
je 0x40d136
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0x80000001
push eax
push ecx
call fcn.0040f5a0
jmp 0x40d38e
mov esi, 7
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0x460], 0x104
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x468]
push edx
push ebx
push ebx
push ebx
push 0x80000003
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea esp, [esp]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push edi
push 0x80000003
mov dword [ebp - 0x460], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
xor edx, edx
lea eax, [ebp - 0x21c]
mov word [ebp - 0x45c], dx
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d1c7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x45c]
call fcn.00417a80
cmp dword [ebp - 0x42c], 8
jb 0x40d201
mov ecx, dword [ebp - 0x440]
push ecx
call fcn.00453bd6
add esp, 4
xor edx, edx
cmp dword [ebp - 0x448], 8
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], dx
jae 0x40d242
mov eax, dword [ebp - 0x44c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x45c]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.00454320
add esp, 0xc
jmp 0x40d254
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x45c], ebx
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x448]
mov byte [ebp - 4], 1
xor ecx, ecx
push 0x15
mov word [ebp - 0x45c], cx
push str.Volatile_Environment
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ebx
call fcn.00415aa0
cmp dword [ebp - 0x42c], 8
mov eax, dword [ebp - 0x440]
jae 0x40d2ac
lea eax, [ebp - 0x440]
lea edx, [ebp - 0x464]
push edx
push 0x20019
push ebx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40d341
mov edx, dword [ebp - 0x464]
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x424]
push ecx
push ebx
push ebx
push str.USERNAME
push edx
mov dword [ebp - 0x460], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jl 0x40d34f
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x424]
mov si, word [ecx]
cmp si, word [edx]
jne 0x40d328
cmp si, bx
je 0x40d324
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40d328
add ecx, 4
add edx, 4
cmp si, bx
jne 0x40d302
xor ecx, ecx
jmp 0x40d32d
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
sete cl
cmp cl, bl
jne 0x40d3d2
mov esi, 7
cmp eax, ebx
jl 0x40d34f
cmp edi, dword [ebp - 0x468]
jbe 0x40d180
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0x80000001
push ecx
push edx
call fcn.0040f5a0
cmp dword [ebp - 0x42c], 8
jb 0x40d379
mov eax, dword [ebp - 0x440]
push eax
call fcn.00453bd6
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d3b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453be1
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x464]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x21c]
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x464]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0040f5a0
cmp dword [ebp - 0x42c], 8
jb 0x40d41d
mov edx, dword [ebp - 0x440]
push edx
call fcn.00453bd6
add esp, 4
xor eax, eax
mov word [ebp - 0x440], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40d3a8