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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x414718
push 0x403d40
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4170c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x124], 0x30
push 0x30
call fcn.0040305a
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
mov eax, dword [0x4123a8]
mov dword [ebp - 0x11c], eax
mov cx, word [0x4123ac]
mov word [ebp - 0x118], cx
mov dl, byte [0x4123ae]
mov byte [ebp - 0x116], dl
push 0xf9
push 0
lea eax, [ebp - 0x115]
push eax
call fcn.004038d0
add esp, 0xc
mov ecx, dword [0x418544]
mov eax, dword [ecx + 0x28]
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c90
sub eax, esi
lea edi, [ebp - 0x11c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402ca0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x12c]
push edx
mov esi, dword [ebp + 8]
push esi
push 0
lea eax, [ebp - 0x11c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test esi, 0x100
je 0x402d13
cmp eax, 5
jne 0x402d13
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4170c0
call fcn.00403ed0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004030e9
mov esp, ebp
pop ebp
ret
xor edx, edx
test eax, eax
sete al
mov byte [ebp - 0x11d], al
test al, al
jne 0x402d70
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x12c]
push ecx
push edx
push esi
push edx
push edx
push edx
lea edx, [ebp - 0x11c]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402d70
push 0x633
call fcn.00402320
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4170c0
call fcn.00403ed0
add esp, 0x10
mov eax, esi
jmp 0x402cf7
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0040305a
add esp, 4
mov esi, eax
lea edx, [ebp - 0x124]
push edx
push esi
lea eax, [ebp - 0x130]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402db5
cmp dword [ebp - 0x130], 3
jne 0x402db5
mov eax, 1
jmp 0x402db7
xor eax, eax
mov bl, al
mov byte [ebp - 0x11d], bl
test bl, bl
je 0x402e59
mov edx, dword [ebp - 0x124]
push edx
push esi
mov edi, dword [ebp - 0x128]
push edi
call fcn.004039d0
mov eax, dword [ebp - 0x124]
push eax
push esi
call fcn.00402b20
mov byte [ebp - 0x11e], 0
lea ecx, [ebp - 0x11e]
push ecx
push esi
call fcn.00402890
add esp, 0x1c
test eax, eax
je 0x402e29
push 0x63e
call fcn.00402320
mov esi, eax
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4170c0
call fcn.00403ed0
add esp, 0x10
mov eax, esi
jmp 0x402cf7
cmp byte [ebp - 0x11e], 0
je 0x402e89
mov eax, dword [ebp - 0x124]
push eax
push esi
push edi
call fcn.004039d0
mov ecx, dword [ebp - 0x124]
push ecx
push edi
call fcn.00402a50
add esp, 0x14
mov byte [ebp - 0x11d], 0
jmp 0x402e8d
mov esi, dword [ebp - 0x128]
push esi
call fcn.00402800
add esp, 4
test eax, eax
je 0x402e73
push 0x646
jmp 0x402e08
mov eax, dword [ebp - 0x124]
push eax
push esi
call fcn.00402a50
add esp, 8
mov edi, dword [ebp - 0x128]
test bl, bl
jne 0x402eb6
mov ecx, dword [ebp - 0x124]
push ecx
push edi
push 3
push 0
push 0
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402eb6
push 0x64b
jmp 0x402d52
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402eed
push 0x64d
call fcn.00402320
mov esi, eax
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x4170c0
call fcn.00403ed0
add esp, 0x10
mov eax, esi
jmp 0x402cf7
mov dword [ebp - 4], 0xfffffffe
call fcn.00402f04
jmp 0x402cf5