Function at 0x407130
Capabilities:
Check if file exists
Delete file
Enumerate process modules
Get file attributes
Move file
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40c06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58c
mov al, byte [esp + 0x17]
push ebx
push ebp
push esi
push edi
push 0x134
mov dword [esp + 0x2c], 0xffffffff
mov byte [esp + 0x14], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x2c]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
mov dword [esp + 0x5b8], ebx
call edi
cmp eax, ebx
jne 0x4072d9
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, 0x104
lea edx, [esp + 0x40]
lea eax, [esp + 0x268]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x40]
push 0
lea eax, [esp + 0x37c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x54], 0x28
mov dword [esp + 0x60], esi
call ebp
test eax, eax
jne 0x4072ce
cmp dword [esp + 0x34], 0x26
jne 0x4072c8
lea edx, [esp + 0x36c]
lea eax, [esp + 0x498]
push edx
push str.CLSID_sInprocServer32
push esi
push eax
call fcn.00403280
add esp, 0x10
lea ecx, [esp + 0x30]
lea edx, [esp + 0x498]
push ecx
push 0x20019
push 0
push edx
push 0x80000000
call edi
test eax, eax
jne 0x4072c8
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x394]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4072bd
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4072bd
lea ecx, [esp + 0x394]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4072bd
lea edx, [esp + 0x268]
inc eax
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4072bd
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x268]
push ecx
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00407580
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
jmp 0x4071b2
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4072fa
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5a4], 0xffffffff
push eax
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push ecx
jmp 0x40732a
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], 0x224
push ecx
call fcn.00404a40
add esp, 4
test eax, eax
jne 0x407349
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5a4], 0xffffffff
push eax
lea edx, [esp + 0x24]
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004075e0
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a920
add esp, 4
or eax, 0xffffffff
jmp 0x4074b1
mov ecx, dword [esp + 0x38]
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x44]
mov ebp, eax
push edx
push ebp
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x407440
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmp dword [esp + 0x5c], 0x30000
jae 0x40742d
mov eax, dword [esp + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x40742d
mov eax, esi
mov esi, dword [esi]
push 0x5c
lea edi, [eax + 8]
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4073ad
inc eax
jmp 0x4073b4
lea eax, [esp + 0x164]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x407423
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call fcn.00406fa0
add esp, 0xc
test eax, eax
je 0x407423
mov eax, dword [esp + 0x5ac]
test eax, eax
je 0x4074ca
add edi, 0x104
push edi
call fcn.00404940
add esp, 4
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407423
push 4
lea edx, [esp + 0x168]
push eax
push edx
call ebx
mov dword [esp + 0x28], 1
cmp esi, dword [esp + 0x14]
jne 0x40738c
lea eax, [esp + 0x44]
push eax
push ebp
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x407370
cmp ebp, 0xffffffff
je 0x40744c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x5a4], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x4074a0
mov eax, esi
mov esi, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00407570
mov eax, dword [eax]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call fcn.0040a920
mov ecx, dword [esp + 0x1c]
add esp, 4
dec ecx
cmp esi, edi
mov dword [esp + 0x18], ecx
jne 0x407461
mov eax, dword [esp + 0x14]
push eax
call fcn.0040a920
mov eax, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x59c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x598
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x5a4], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x4074fd
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00407630
cmp esi, edi
jne 0x4074e6
mov edx, dword [esp + 0x14]
push edx
call fcn.0040a920
add esp, 4
xor eax, eax
jmp 0x4074b1