Function at 0x40a440
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 0x40a73b
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.00405010
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00405010
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 0x40a72e
cmp dword [ebp - 0x218], 1
jne 0x40a690
cmp dword [ebp - 4], 3
jbe 0x40a690
push 0x100
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.00405010
add esp, 0xc
movsx eax, byte [ebp - 0x420]
cmp eax, 0x22
jne 0x40a537
lea ecx, [ebp - 0x41f]
mov dword [ebp - 0x220], ecx
jmp 0x40a543
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 0x40a56d
jmp 0x40a6dc
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.004041d0
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.0040a740
add esp, 8
cmp eax, 1
jne 0x40a690
cmp dword [0x413420], 1
je 0x40a5fc
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0040a7f0
add esp, 8
cmp eax, 1
jne 0x40a690
cmp dword [0x413420], 1
je 0x40a61d
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040a980
add esp, 8
cmp eax, 1
jne 0x40a690
push 0x100
push 0
lea eax, [ebp - 0x320]
push eax
call fcn.00405010
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.004041d0
add esp, 0xc
push 0x402a68
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.0040acd0
add esp, 8
jmp 0x40a6dc
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 0x40a6bf
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040aea0
add esp, 4
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.0040adc0
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.00405010
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.00405010
add esp, 0xc
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x40a4b2
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret