Function at 0x41312f
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x418010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xa40], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0x824]
push ebx
push eax
mov dword [ebp - 0xa34], ebx
call fcn.004158b4
mov edi, dword [0x401178]
add esp, 0xc
call edi
push eax
push dword [ebp - 0xa30]
lea eax, [ebp - 0x824]
push 0x4029b8
push esi
push eax
call fcn.0040c4d2
add esp, 0x14
lea eax, [ebp - 0xa34]
push eax
push 1
push ebx
lea eax, [ebp - 0x824]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4133cf
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa48]
push eax
push ebx
push 0x4029a8
push dword [ebp - 0xa34]
mov dword [ebp - 0xa44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4133cf
push dword [ebp - 0xa34]
call dword [entry0]
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004158b4
push esi
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.004158b4
add esp, 0x18
call edi
push eax
push 0x402978
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0040c4d2
push dword [ebp - 0xa30]
lea eax, [ebp - 0xa2c]
push 0x402960
push esi
push eax
call fcn.0040c4d2
add esp, 0x20
lea eax, [ebp - 0xa3c]
push eax
push 0x20006
push ebx
lea eax, [ebp - 0xa2c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413295
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xa3c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0xa3c]
call dword [entry0]
push dword [ebp - 0xa38]
push 1
push 0x1f0fff
call dword [0x4010d0]
mov dword [ebp - 0xa30], eax
cmp eax, ebx
je 0x4133cf
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004158b4
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004158b4
add esp, 0x18
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [fcn.004011bc]
mov edi, dword [0x4010d4]
test eax, eax
je 0x413328
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [0x401218]
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
push 0x402950
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004130d0
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, ebx
jne 0x413337
push 0x402944
call edi
cmp eax, ebx
je 0x4133cf
push 0x402930
push eax
call dword [fcn.004011c8]
mov edi, eax
cmp edi, ebx
je 0x4133cf
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004158b4
add esp, 0xc
push dword [ebp - 0xa40]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040c44f
push 0x402910
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0040db61
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [0x401144]
mov esi, eax
cmp esi, 0xffffffff
je 0x4133cf
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp - 0xa38]
push dword [ebp - 0xa30]
call edi
push esi
test eax, eax
je 0x4133c9
call dword [0x401140]
mov al, 1
jmp 0x4133d1
call dword [0x401140]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412315
leave
ret 8