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

Disassembly:
push 0x454
mov eax, 0x4374dd
call fcn.0041f563
mov byte [ebp - 0x429], dl
mov ebx, ecx
mov dword [ebp - 0x438], ebx
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x414], 7
mov esi, 0x3f2
mov dword [ebp - 0x418], edi
mov word [ebp - 0x428], ax
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x460]
call fcn.0040277f
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 0x450]
add eax, eax
push 0xffffffffffffffff
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x460]
push edi
push eax
call fcn.00402b29
push edi
push 1
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 3
call fcn.00402cb9
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov dword [ebp - 0x448], edi
cmovae eax, dword [ebp - 0x428]
cmp ebx, 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x440], eax
je 0x4039cf
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040277f
mov ecx, edi
call fcn.00418828
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4038d4
cmp edi, 2
jne 0x403ade
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x444], 0x400
xor esi, esi
inc esi
mov dword [ebp - 0x434], esi
call fcn.0041853d
lea ecx, [ebp - 0x430]
cmp eax, esi
push ecx
lea eax, [ebp + 8]
jne 0x403921
push 0x2021f
jmp 0x403926
push 0x2001f
cmp dword [ebp + 0x1c], 8
push edi
cmovae eax, dword [ebp + 8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x4039c6
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp - 0x429], 0
jne 0x403981
test eax, eax
jne 0x403981
push 0x50
pop esi
jmp 0x4039be
push dword [ebp - 0x43c]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp - 0x440]
cmovae eax, dword [ebp + 0x20]
push 1
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x403adc
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x403adc
cmp esi, 0x50
je 0x403adc
cmp dword [ebp - 0x438], 0
je 0x403adc
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040277f
xor ecx, ecx
inc ecx
call fcn.00418828
mov edi, eax
add esp, 0x18
test edi, edi
je 0x403a04
cmp edi, 2
jne 0x403ade
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0041ed30
add esp, 0xc
mov dword [ebp - 0x438], 0x400
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x430]
lea eax, [ebp + 8]
mov dword [ebp - 0x434], 1
cmovae eax, dword [ebp + 8]
push ecx
push 0x2021f
push 0
push eax
push SysReAllocString
call ebx
mov edi, eax
test edi, edi
jne 0x403ad7
cmp dword [ebp + 0x34], 8
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x434]
push ecx
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push edi
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp - 0x429], 0
jne 0x403a9d
test eax, eax
jne 0x403a9d
push 0x50
pop edi
jmp 0x403ad7
push dword [ebp - 0x43c]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp - 0x440]
cmovae eax, dword [ebp + 0x20]
push 1
push 0
push eax
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x403ad7
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
cmovne esi, edi
mov edi, esi
xor ebx, ebx
lea ecx, [ebp - 0x428]
xor esi, esi
push ebx
inc esi
push esi
call fcn.00402cb9
push ebx
push esi
lea ecx, [ebp + 8]
call fcn.00402cb9
push ebx
push esi
lea ecx, [ebp + 0x20]
call fcn.00402cb9
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.00402cb9
mov eax, edi
call fcn.0041f512
ret