Function at 0x403e70
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 0x40416b
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.00402820
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00402820
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 0x40415e
cmp dword [ebp - 0x218], 1
jne 0x4040c0
cmp dword [ebp - 4], 3
jbe 0x4040c0
push 0x100
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.00402820
add esp, 0xc
movsx eax, byte [ebp - 0x420]
cmp eax, 0x22
jne 0x403f67
lea ecx, [ebp - 0x41f]
mov dword [ebp - 0x220], ecx
jmp 0x403f73
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 0x403f9d
jmp 0x40410c
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.00401a60
add esp, 0xc
mov edx, dword [ebp - 0x10c]
sub edx, dword [ebp - 0x220]
mov dword [ebp - 4], edx
mov dword [0x407f9c], 0
mov eax, dword [ebp - 0x110]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00404170
add esp, 8
cmp eax, 1
jne 0x4040c0
cmp dword [0x407f9c], 1
je 0x40402c
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00404220
add esp, 8
cmp eax, 1
jne 0x4040c0
cmp dword [0x407f9c], 1
je 0x40404d
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004043b0
add esp, 8
cmp eax, 1
jne 0x4040c0
push 0x100
push 0
lea eax, [ebp - 0x320]
push eax
call fcn.00402820
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.00401a60
add esp, 0xc
push 0x4018c0
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.00404700
add esp, 8
jmp 0x40410c
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 0x4040ef
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004048d0
add esp, 4
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004047f0
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.00402820
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.00402820
add esp, 0xc
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
jmp 0x403ee2
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret