Function at 0x402ab0
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 0x49501b
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401fa0
xor ebx, ebx
push 0x49501b
lea ecx, [esp + 0x20]
mov dword [esp + 0x490], ebx
call fcn.00401fa0
mov byte [esp + 0x48c], 1
cmp dword [esi], ebx
jne 0x402b7e
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 0x402b49
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 0x402b74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40322d
cmp dword [esp + 0x494], ebx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x104
jle 0x4031d6
lea ebp, [esi + 0x10c]
mov eax, dword [ebp - 0x10c]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x402bb7
push 0x12
push str.HKEY_LOCAL_MACHINE
jmp 0x402bd5
cmp eax, 0x80000000
jne 0x402bc7
push 0x11
push str.HKEY_CLASSES_ROOT
jmp 0x402bd5
cmp eax, 0x80000001
jne 0x402bde
push 0x11
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x24]
call fcn.00402410
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 0x403048
cmp byte [ebp], al
je 0x40300a
cmp dword [ebp - 4], 4
lea eax, [ebp - 4]
jne 0x402c28
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 0x4030e1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c50
sub eax, edx
mov esi, eax
cmp byte [esi + ebp + 0x103], 0x22
jne 0x402c6d
mov byte [esi + ebp + 0x103], cl
dec esi
cmp byte [ebp + 0x104], 0x22
lea eax, [ebp + 0x104]
jne 0x402c99
lea ecx, [esi - 1]
push ecx
lea edx, [ebp + 0x105]
push edx
push eax
call fcn.0043ca30
add esp, 0xc
dec esi
mov byte [esi + ebp + 0x104], 0
cmp byte [ebp + 0x30c], 1
jne 0x40300a
push 0x31
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.0043abc0
mov eax, dword [0x4aff94]
add esp, 0xc
cmp eax, 1
jne 0x402cf4
mov ecx, dword [str.dftxscsp.dll]
mov edx, dword [0x4950d0]
mov eax, dword [0x4950d4]
mov dword [esp + 0x2c], ecx
mov cx, word [0x4950d8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
jmp 0x402da6
cmp eax, 0xd
jne 0x402d1f
push 0
mov ecx, 0x4c6b8c
call fcn.004023b0
lea edx, [esp + 0x2c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d10
jmp 0x402da6
cmp eax, 0xc
jne 0x402d40
push 0
mov ecx, 0x4c6b44
call fcn.004023b0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d34
jmp 0x402da6
cmp eax, 0xb
jne 0x402d61
push 0
mov ecx, 0x4c6b20
call fcn.004023b0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d55
jmp 0x402da6
cmp eax, 0xe
jne 0x402d82
push 0
mov ecx, 0x4c6b68
call fcn.004023b0
lea edx, [esp + 0x2c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x402d76
jmp 0x402da6
cmp eax, 0xffffffff
jne 0x402da6
mov edx, dword [str.NoKey]
mov ax, word [0x4950e0]
mov cl, byte [0x4950e2]
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], ax
mov byte [esp + 0x32], cl
cmp byte [ebp + 0x30d], 1
jne 0x402f6d
push 0x103
lea edx, [esp + 0x65]
push 0
push edx
mov byte [esp + 0x6c], 0
call fcn.0043abc0
add esp, 0xc
push 0x103
lea eax, [esp + 0x37d]
push 0
push eax
mov byte [esp + 0x384], 0
call fcn.0043abc0
add esp, 0xc
lea esi, [esp + 0x378]
call fcn.00408210
lea esi, [esp + 0x168]
call fcn.00408440
mov eax, dword [0x4aff94]
cmp eax, 1
jne 0x402e3a
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 0x402f03
cmp eax, 0xd
jne 0x402e6b
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, 0x4c6b90
call fcn.004023b0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402f03
cmp eax, 0xc
jne 0x402e99
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, 0x4c6b48
call fcn.004023b0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402f03
cmp eax, 0xe
jne 0x402ec7
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, 0x4c6b6c
call fcn.004023b0
push eax
lea edx, [esp + 0x64]
push edx
jmp 0x402f03
cmp eax, 0xb
jne 0x402f05
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 0x495104
lea eax, [esp + 0x64]
push eax
call esi
push 0x4c18a5
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 0x402fdc
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 0x495108
lea eax, [esp + 0x24]
push eax
call fcn.004020f0
add esp, 0x10
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402640
call fcn.0040b470
mov eax, dword [esp + 0x20]
push eax
jmp 0x4031c8
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 0x402fca
push 0x103
push eax
lea ecx, [esp + 0x279]
push ecx
mov byte [esp + 0x27c], al
call fcn.0043abc0
add esp, 0xc
lea esi, [esp + 0x270]
call fcn.00408210
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 0x402fd4
push edi
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x403148
cmp dword [ebp - 4], 4
jne 0x40300a
xor eax, eax
jmp 0x402ff0
mov cl, byte [eax + ebp + 0x104]
cmp cl, byte [eax + ebp + 0x208]
jne 0x403174
inc eax
cmp eax, 4
jl 0x402ff0
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.0043abc0
inc ebx
add esp, 0xc
add ebp, 0x520
cmp ebx, dword [esp + 0x494]
jge 0x4031d6
mov esi, dword [esp + 0x18]
jmp 0x402ba1
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 0x495090
push eax
call fcn.004020f0
add esp, 0x10
push 8
push 0x4950a4
lea ecx, [esp + 0x1c]
call fcn.00404c90
lea ecx, [esi + 0x41a]
test ecx, ecx
jne 0x40308f
xor eax, eax
jmp 0x40309d
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403094
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404c90
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b470
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4031d6
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 0x4950b0
push eax
call fcn.004020f0
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b470
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4031d6
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 0x495108
lea ecx, [esp + 0x24]
push ecx
jmp 0x402f46
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 0x495108
push ecx
call fcn.004020f0
mov eax, dword [esp + 0x28]
add esp, 0x10
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.004025d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040b470
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 0x4031fe
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 0x403229
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.00436738
add esp, 0x47c
ret 4