Function at 0x40a710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4446e7
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x15c]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edi
push 0x103
lea ecx, [esp + 0x49]
push ebx
mov dword [esp + 0x15c], ebx
push ecx
mov byte [esp + 0x50], bl
call fcn.00431520
mov ecx, dword [0x45a558]
add esp, 0xc
lea edx, [esp + 0x38]
push edx
mov edx, dword [0x457a90]
lea eax, [esp + 0x20]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40a7b9
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov edi, eax
push 0x44b9af
lea ecx, [esp + 0x24]
call fcn.00403330
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x154], 2
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.kd_02d
push edx
call fcn.004033f0
add esp, 0xc
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push eax
push edi
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40a846
mov eax, dword [esp + 0x40]
cmp eax, 1
je 0x40a830
cmp eax, 2
jne 0x40a846
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x40a8e8
cmp byte [esp + eax + 0x43], bl
je 0x40a8ec
cmp dword [esp + 0x3c], ebx
je 0x40ac08
push ebx
call fcn.0042edac
push eax
call fcn.0042ed7d
add esp, 8
call fcn.0042ed8a
mov ecx, dword [esp + 0x28]
cdq
idiv ecx
mov esi, edx
cmp esi, ebx
jl 0x40abf9
cmp esi, ecx
jge 0x40abf9
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
push 0x44b9af
push eax
call fcn.0042f58c
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40ab91
cmp edi, ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a8b0
push edi
call ebp
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x24]
mov esi, dword [edx + esi*4]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40ab0f
cmp eax, dword [esi]
jne 0x40ab0f
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40ab46
mov byte [esp + 0x44], bl
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403330
mov byte [esp + 0x154], 3
mov esi, dword [esp + 0x14]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40a933
cmp eax, dword [esi]
jne 0x40a933
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40a969
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x40ab23
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042daa5
add esp, 0x10
lea edx, [esp + 0x3c]
add edi, 0x10
push edx
mov dword [ebp], edi
call fcn.00405cd0
mov byte [esp + 0x154], 4
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40a9d7
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40a9c9
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40a9c9
push eax
call fcn.00403490
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a9c0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x40a9d7
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401760
mov byte [esp + 0x154], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00407350
cmp eax, ebx
jne 0x40aa11
xor ecx, ecx
jmp 0x40aa21
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x40aa16
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401760
mov edx, dword [esp + 0x14]
push 0x44b9af
push edx
call fcn.0042f58c
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
je 0x40aac0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
cmp edi, eax
mov dword [esp + 0x3c], 1
jne 0x40aaa8
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
cmp edx, ecx
jb 0x40aa76
lea edx, [ecx + eax*4]
lea esi, [esp + 0x14]
cmp esi, edx
jb 0x40ab05
cmp eax, ebx
jne 0x40aa81
mov esi, 1
jmp 0x40aa90
lea esi, [edi + edi]
cmp esi, ebx
jl 0x40aac0
cmp esi, 0x1fffffff
ja 0x40aac0
push 4
push esi
push ecx
call fcn.0042f324
add esp, 0xc
cmp eax, ebx
je 0x40aac0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov edx, edi
call fcn.0040f550
add edi, 1
mov dword [esp + 0x28], edi
mov byte [esp + 0x154], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aae8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jge 0x40a846
jmp 0x40a7e3
push 0x80004005
call fcn.00401520
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x40ab28
call fcn.00401670
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0042daa5
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [esp + 0x30]
lea esi, [esp + 0x24]
mov dword [edi], edx
call fcn.0040f410
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40ab8a
push eax
call ebp
mov eax, edi
jmp 0x40ac55
cmp edi, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40abaa
mov ecx, dword [esp + 0x18]
push ecx
call edi
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x40abae
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push 0x44b9af
call fcn.00403330
lea esi, [esp + 0x24]
call fcn.0040f410
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40abec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x40abf3
push ebp
call edi
mov eax, dword [esp + 0x30]
jmp 0x40ac55
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebp, dword [esp + 0x30]
push 0x44b9af
mov ecx, ebp
call fcn.00403330
lea esi, [esp + 0x24]
call fcn.0040f410
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40ac53
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x144
ret 4