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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x455008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44511c
push 0x444b64
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], edx
push 0x104
push eax
mov dword [ebp - 0x42c], 0
call fcn.004013f0
add esp, 0x10
cmp dword [ebp - 0x41c], 0
jne 0x401db3
call fcn.00402030
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x401db3
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor esi, esi
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0x444d50
push 0x80000002
mov dword [ebp - 0x428], 0x208
mov dword [ebp - 0x424], esi
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401aa0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x444dac
push dword [ebp - 0x420]
call ebx
test eax, eax
jne 0x401a28
lea eax, [ebp - 0x210]
push eax
push 0x444dc4
call fcn.0041eafa
add esp, 8
test eax, eax
mov eax, 1
cmove esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401aa0
push 0x4411b0
xor edi, edi
xor esi, esi
call fcn.00401380
add esp, 4
nop dword [eax]
push 0x444e74
call fcn.00401440
add esp, 4
call fcn.0041edce
mov bl, al
movsx ecx, bl
push ecx
push 0x444e88
call fcn.00401440
add esp, 8
cmp bl, 0x79
je 0x401a7f
cmp bl, 0x59
jne 0x401a86
mov edi, 1
mov esi, edi
cmp bl, 0x6e
je 0x401a95
cmp bl, 0x4e
je 0x401a95
cmp esi, 1
jne 0x401a50
mov dword [ebp - 0x41c], edi
jmp 0x401daa
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0
push eax
push 0x444dd8
xor esi, esi
mov dword [ebp - 0x428], 0
push 0x80000002
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x424], esi
call edi
test eax, eax
jne 0x401b30
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push 0x444e5c
push dword [ebp - 0x420]
call ebx
test eax, eax
jne 0x401b1c
cmp dword [ebp - 0x424], 4
jne 0x401b1c
cmp dword [ebp - 0x428], 1
mov eax, 1
cmove esi, eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401e16
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x401e16
push 0x3e8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, 0x444b98
mov edi, eax
call fcn.004012a0
xor eax, eax
mov dword [edi], 0x80c808d0
mov ecx, 0x444bb4
mov dword [edi + 0xa], eax
lea edx, [edi + 0x16]
mov dword [edi + 0xe], 0xb40138
mov word [edi + 8], ax
sub edx, ecx
mov dword [edi + 0x12], eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401b84
mov eax, 8
lea edx, [edi + 0x3c]
mov ecx, 0x444bd8
mov word [edi + 0x3a], ax
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401bb0
lea eax, [edi + 0x59]
mov ecx, 0x1f6
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x444bf8
mov dword [eax + 8], 0x30007
sub edx, ecx
mov dword [eax + 0xc], 0xe012a
mov dword [eax], 0x50000000
mov dword [esi], 0x82ffff
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401c00
xor eax, eax
mov ecx, 1
mov word [esi + 0x96], ax
lea eax, [esi + 0x9b]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x444c8c
mov dword [eax + 8], 0x9f00c9
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401c60
xor eax, eax
mov ecx, 2
mov word [esi + 0x12], ax
lea eax, [esi + 0x17]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x444c9c
mov dword [eax + 8], 0x9f00ff
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401cb0
xor eax, eax
mov ecx, 0x1f5
mov word [esi + 0x16], ax
lea eax, [esi + 0x1b]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
lea edx, [esi + 4]
mov word [eax + 0x10], cx
mov ecx, 0x444cb0
mov dword [eax + 8], 0x9f0007
sub edx, ecx
mov dword [eax + 0xc], 0xe0032
mov dword [eax], 0x50010000
mov dword [esi], 0x80ffff
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401d00
xor eax, eax
mov ecx, 0x1f4
mov word [esi + 0x12], ax
lea eax, [esi + 0x17]
inc word [edi + 8]
and eax, 0xfffffffc
lea esi, [eax + 0x12]
mov word [eax + 0x10], cx
mov ecx, 0x444cc0
mov dword [eax + 8], 0xe0007
mov edx, esi
mov dword [eax + 0xc], 0x8c012a
mov dword [eax], 0x50a11844
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401d50
mov ecx, 0x444c9c
lea edx, [esi + 0x12]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401d70
push 0x44511c
xor eax, eax
push 0x401720
push eax
push edi
mov word [esi + 0x24], ax
inc word [edi + 8]
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push edi
mov dword [ebp - 0x41c], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x41c], 0
je 0x401dfa
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401dfa
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push 0
push 0x444cd4
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x41c], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00415f69
mov esp, ebp
pop ebp
ret
call fcn.00401f80
int3