Function at 0x401b60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x46a124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push esi
push 0x45b37c
push eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x424], 0
call fcn.004020d0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x401f42
push esi
call fcn.004014b0
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401f42
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor esi, esi
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
push 0x45b568
push 0x80000002
mov dword [ebp - 0x420], 0x208
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x401cb2
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push 0x45b5c4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401c44
lea eax, [ebp - 0x20c]
push eax
push 0x45b5dc
call fcn.00413875
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x418]
call ebx
test esi, esi
je 0x401cb2
push dword [0x4690c4]
xor edi, edi
xor esi, esi
call fcn.00402130
add esp, 4
push 0x45b68c
call fcn.00402100
call fcn.0042555d
mov bl, al
movsx eax, bl
push eax
push 0x45b6a0
call fcn.00402100
add esp, 0xc
cmp bl, 0x79
je 0x401c8e
cmp bl, 0x59
jne 0x401c95
mov edi, 1
mov esi, edi
cmp bl, 0x6e
je 0x401ca4
cmp bl, 0x4e
je 0x401ca4
cmp esi, 1
jne 0x401c62
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0xc], edi
jmp 0x401f3b
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0x45b5f0
xor esi, esi
mov dword [ebp - 0x420], 0
push 0x80000002
mov dword [ebp - 0x428], 4
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x401d42
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push 0x45b674
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401d32
cmp dword [ebp - 0x41c], 4
jne 0x401d32
cmp dword [ebp - 0x420], 1
mov eax, 1
cmove esi, eax
push dword [ebp - 0x418]
call ebx
test esi, esi
jne 0x401f9a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x401f9a
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 1
push 0x45b3b0
lea esi, [edi + 0x12]
call section..text
xor eax, eax
mov dword [edi], 0x80c808d0
mov dword [edi + 0xa], eax
mov dword [edi + 0xe], 0xb40138
mov word [edi + 8], ax
mov dword [esi], eax
add esi, 4
push 0x45b3cc
push esi
call fcn.004010c0
push 0x45b3f0
lea esi, [esi + eax*2]
mov eax, 8
mov word [esi], ax
add esi, 2
push esi
call fcn.004010c0
push 0x45b410
lea esi, [esi + eax*2]
mov eax, 0x82
add esi, 3
and esi, 0xfffffffc
mov dword [esi + 8], 0x30007
mov dword [esi + 0xc], 0xe012a
mov dword [esi + 0x10], 0xffff01f6
mov dword [esi], 0x50000000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.004010c0
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
push 0x45b4a4
mov dword [esi + 8], 0x9f00c9
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff0001
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.004010c0
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
push 0x45b4b4
mov dword [esi + 8], 0x9f00ff
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff0002
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push esi
call fcn.004010c0
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x80
and esi, 0xfffffffc
mov dword [esi + 8], 0x9f0007
mov dword [esi + 0xc], 0xe0032
mov dword [esi + 0x10], 0xffff01f5
mov dword [esi], 0x50010000
mov word [esi + 0x14], ax
add esi, 0x16
push 0x45b4c8
push esi
call fcn.004010c0
xor ecx, ecx
mov word [esi + eax*2], cx
inc word [edi + 8]
lea eax, [esi + eax*2]
lea esi, [eax + 5]
mov eax, 0x1f4
and esi, 0xfffffffc
push 0x45b4d8
mov dword [esi + 8], 0xe0007
mov dword [esi + 0xc], 0x8c012a
mov word [esi + 0x10], ax
mov dword [esi], 0x50a11844
add esi, 0x12
push esi
call fcn.004010c0
add esp, 0x40
lea esi, [esi + eax*2]
push 0x45b4b4
push esi
call fcn.004010c0
add esp, 8
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [ebp - 0x42c]
inc word [edi + 8]
push 0x401110
push ecx
push edi
push ecx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0xc], 0
pop edi
je 0x401f82
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401f82
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push 0x45b4ec
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x424]
call ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], eax
pop esi
setne al
xor ecx, ebp
pop ebx
call fcn.004093c1
mov esp, ebp
pop ebp
ret
call fcn.00401b30
int3