Function at 0x402aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x484976
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x484]
mov dword fs:[0], eax
mov esi, ecx
push 0x49500b
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401fa0
xor ebx, ebx
push 0x49500b
lea ecx, [esp + 0x20]
mov dword [esp + 0x490], ebx
call fcn.00401fa0
mov byte [esp + 0x48c], 1
cmp dword [esi], ebx
jne 0x402b6e
mov byte [esp + 0x48c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40321d
cmp dword [esp + 0x494], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
jle 0x4031c6
lea ebp, [esi + 0x10c]
mov eax, dword [ebp - 0x10c]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x402ba7
push 0x12
push str.HKEY_LOCAL_MACHINE
jmp 0x402bc5
cmp eax, 0x80000000
jne 0x402bb7
push 0x11
push str.HKEY_CLASSES_ROOT
jmp 0x402bc5
cmp eax, 0x80000001
jne 0x402bce
push 0x11
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x24]
call fcn.00402400
mov eax, dword [ebp - 0x10c]
lea ecx, [esp + 0x20]
push ecx
push 0x201
push 0
lea edx, [ebp - 0x108]
push edx
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403038
cmp byte [ebp], al
je 0x402ffa
cmp dword [ebp - 4], 4
lea eax, [ebp - 4]
jne 0x402c18
mov dword [esp + 0x28], 4
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
lea esi, [ebp + 0x104]
push esi
push eax
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4030d1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c40
sub eax, edx
mov esi, eax
cmp byte [esi + ebp + 0x103], 0x22
jne 0x402c5d
mov byte [esi + ebp + 0x103], cl
dec esi
cmp byte [ebp + 0x104], 0x22
lea eax, [ebp + 0x104]
jne 0x402c89
lea ecx, [esi - 1]
push ecx
lea edx, [ebp + 0x105]
push edx
push eax
call fcn.0043ca60
add esp, 0xc
dec esi
mov byte [esi + ebp + 0x104], 0
cmp byte [ebp + 0x30c], 1
jne 0x402ffa
push 0x31
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.0043abe0
mov eax, dword [0x4aff94]
add esp, 0xc
cmp eax, 1
jne 0x402ce4
mov ecx, dword [0x4950bc]
mov edx, dword [0x4950c0]
mov eax, dword [0x4950c4]
mov dword [esp + 0x2c], ecx
mov cx, word [0x4950c8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
jmp 0x402d96
cmp eax, 0xd
jne 0x402d0f
push 0
mov ecx, 0x4c866c
call fcn.004023a0
lea edx, [esp + 0x2c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d00
jmp 0x402d96
cmp eax, 0xc
jne 0x402d30
push 0
mov ecx, 0x4c8648
call fcn.004023a0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d24
jmp 0x402d96
cmp eax, 0xe
jne 0x402d51
push 0
mov ecx, 0x4c8624
call fcn.004023a0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d45
jmp 0x402d96
cmp eax, 0xb
jne 0x402d72
push 0
mov ecx, 0x4c8600
call fcn.004023a0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d66
jmp 0x402d96
cmp eax, 0xffffffff
jne 0x402d96
mov edx, dword [str.NoKey]
mov ax, word [0x4950d0]
mov cl, byte [0x4950d2]
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], ax
mov byte [esp + 0x32], cl
cmp byte [ebp + 0x30d], 1
jne 0x402f5d
push 0x103
lea edx, [esp + 0x65]
push 0
push edx
mov byte [esp + 0x6c], 0
call fcn.0043abe0
add esp, 0xc
push 0x103
lea eax, [esp + 0x37d]
push 0
push eax
mov byte [esp + 0x384], 0
call fcn.0043abe0
add esp, 0xc
lea esi, [esp + 0x378]
call fcn.004082d0
lea esi, [esp + 0x168]
call fcn.00408500
mov eax, dword [0x4aff94]
cmp eax, 1
jne 0x402e2a
mov ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ecx
lea edx, [esp + 0x64]
push edx
call esi
push str.DFUK_Client
lea eax, [esp + 0x64]
push eax
call esi
lea ecx, [ebp + 0x208]
push ecx
lea edx, [esp + 0x64]
push edx
jmp 0x402ef3
cmp eax, 0xd
jne 0x402e5b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x64]
push ecx
call esi
push 0
mov ecx, 0x4c8670
call fcn.004023a0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402ef3
cmp eax, 0xc
jne 0x402e89
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x64]
push ecx
call esi
push 0
mov ecx, 0x4c864c
call fcn.004023a0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402ef3
cmp eax, 0xe
jne 0x402eb7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x64]
push ecx
call esi
push 0
mov ecx, 0x4c8628
call fcn.004023a0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402ef3
cmp eax, 0xb
jne 0x402ef5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.control.exe__
lea eax, [esp + 0x64]
push eax
call esi
lea ecx, [esp + 0x378]
push ecx
lea edx, [esp + 0x64]
push edx
call esi
push 0x4950f4
lea eax, [esp + 0x64]
push eax
call esi
push 0x4c38a5
lea ecx, [esp + 0x64]
push ecx
call esi
lea edx, [esp + 0x60]
push edx
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402fcc
mov edx, dword [esp + 0x18]
imul ebx, ebx, 0x520
lea eax, [ebx + edx]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 0x10c]
push ecx
add eax, 4
push eax
push edx
push 0x4950f8
lea eax, [esp + 0x24]
push eax
call fcn.004020e0
add esp, 0x10
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402650
call fcn.0040b570
mov eax, dword [esp + 0x20]
push eax
jmp 0x4031b8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edi, [ebp + 0x208]
push edi
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x402fba
push 0x103
push eax
lea ecx, [esp + 0x279]
push ecx
mov byte [esp + 0x27c], al
call fcn.0043abe0
add esp, 0xc
lea esi, [esp + 0x270]
call fcn.004082d0
push edi
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, esi
push eax
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
jmp 0x402fc4
push edi
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x403138
cmp dword [ebp - 4], 4
jne 0x402ffa
xor eax, eax
jmp 0x402fe0
mov cl, byte [eax + ebp + 0x104]
cmp cl, byte [eax + ebp + 0x208]
jne 0x403164
inc eax
cmp eax, 4
jl 0x402fe0
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp + 0x104]
push 0
push eax
call fcn.0043abe0
inc ebx
add esp, 0xc
add ebp, 0x520
cmp ebx, dword [esp + 0x494]
jge 0x4031c6
mov esi, dword [esp + 0x18]
jmp 0x402b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
imul ebx, ebx, 0x520
mov edx, dword [esp + 0x1c]
add esi, ebx
lea ecx, [esi + 4]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x495080
push eax
call fcn.004020e0
add esp, 0x10
push 8
push 0x495094
lea ecx, [esp + 0x1c]
call fcn.00404ce0
lea ecx, [esi + 0x41a]
test ecx, ecx
jne 0x40307f
xor eax, eax
jmp 0x40308d
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403084
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404ce0
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b570
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4031c6
mov edx, dword [esp + 0x18]
imul ebx, ebx, 0x520
lea eax, [ebx + edx]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 0x10c]
push ecx
add eax, 4
push eax
push edx
lea eax, [esp + 0x20]
push 0x4950a0
push eax
call fcn.004020e0
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b570
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4031c6
mov ecx, dword [esp + 0x18]
imul ebx, ebx, 0x520
lea eax, [ebx + ecx]
lea edx, [eax + 0x10c]
push edx
add eax, 4
push eax
mov eax, dword [esp + 0x24]
push eax
push 0x4950f8
lea ecx, [esp + 0x24]
push ecx
jmp 0x402f36
mov ecx, dword [esp + 0x18]
imul ebx, ebx, 0x520
lea eax, [ebx + ecx]
lea edx, [eax + 0x10c]
push edx
add eax, 4
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push 0x4950f8
push ecx
call fcn.004020e0
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b570
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x24], 0
mov byte [esp + 0x48c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x48c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x484]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.0043675a
add esp, 0x47c
ret 4