Function at 0x409a60
Capabilities:
Bypass mark of the web
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x214]
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409d5b
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0x100
mov dword [ebp - 0x110], 0x100
mov eax, dword [ebp - 0x110]
push eax
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00404d60
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00404d60
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x409d4e
cmp dword [ebp - 0x218], 1
jne 0x409cb0
cmp dword [ebp - 4], 3
jbe 0x409cb0
push 0x100
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.00404d60
add esp, 0xc
movsx eax, byte [ebp - 0x420]
cmp eax, 0x22
jne 0x409b57
lea ecx, [ebp - 0x41f]
mov dword [ebp - 0x220], ecx
jmp 0x409b63
lea edx, [ebp - 0x420]
mov dword [ebp - 0x220], edx
push 0x2e
push 0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x409b8d
jmp 0x409cfc
mov ecx, dword [ebp - 0x10c]
add ecx, 4
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00403f20
add esp, 0xc
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x220]
mov dword [ebp - 4], edx
mov dword [0x413420], 0
mov eax, dword [ebp - 0x110]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00409d60
add esp, 8
cmp eax, 1
jne 0x409cb0
cmp dword [0x413420], 1
je 0x409c1c
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00409e10
add esp, 8
cmp eax, 1
jne 0x409cb0
cmp dword [0x413420], 1
je 0x409c3d
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00409fa0
add esp, 8
cmp eax, 1
jne 0x409cb0
push 0x100
push 0
lea eax, [ebp - 0x320]
push eax
call fcn.00404d60
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x320]
push eax
call fcn.00403f20
add esp, 0xc
push 0x4027b4
lea ecx, [ebp - 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a2f0
add esp, 8
jmp 0x409cfc
push 0x5c
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409cdf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a4c0
add esp, 4
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040a3e0
add esp, 0xc
mov dword [ebp - 4], 0x100
mov dword [ebp - 0x110], 0x100
mov edx, dword [ebp - 0x110]
push edx
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00404d60
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.00404d60
add esp, 0xc
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x409ad2
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret