Function at 0x494d70
Capabilities:
Check if file exists
Delete file
Get common file path
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x606fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push str.Wow64DisableWow64FsRedirection
xor esi, esi
push 0x6d6af8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x494ddb
lea ecx, [esp + 0x24]
push ecx
call eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x298], esi
push 0x208
lea eax, [esp + 0x82]
xor edx, edx
push esi
push eax
mov word [esp + 0x88], dx
call fcn.005c8fb0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.0040b990
mov byte [esp + 0x298], 1
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, 0x6d6dec
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040ba40
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x495201
lea edx, [esp + 0x1c]
push edx
call fcn.004c12a0
add esp, 4
mov byte [esp + 0x298], 4
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x6d4994
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x298], 5
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov byte [esp + 0x298], 4
lea ecx, [esp + 0x18]
call fcn.0040ba40
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x1c]
call fcn.0040ba40
lea ecx, [esp + 0x18]
push ecx
call fcn.004c12a0
add esp, 4
mov byte [esp + 0x298], 6
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, 0x6d49a0
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x298], 7
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x298], 6
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040ba40
lea eax, [esp + 0x18]
push eax
call fcn.004c12a0
add esp, 4
mov byte [esp + 0x298], 8
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, 0x6d49b4
call fcn.0041e2b0
add esp, 8
mov byte [esp + 0x298], 9
mov eax, dword [eax]
push eax
call esi
mov ebx, 8
mov byte [esp + 0x298], bl
lea ecx, [esp + 0x1c]
call fcn.0040ba40
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040ba40
mov edx, dword [esp + 0x20]
push edx
call esi
lea ecx, [esp + 0x60]
call fcn.0043ef20
mov byte [esp + 0x298], 0xa
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x494f9a
lea esi, [esp + 0x64]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x1b], 0
call fcn.00443eb0
mov byte [esp + 0x298], 0xb
xor ebp, ebp
cmp word [esi], bp
je 0x4951bc
lea esp, [esp]
mov ecx, str.msbtsc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x494fed
test dx, dx
je 0x494fe9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x494fed
add eax, 4
add ecx, 4
test dx, dx
jne 0x494fc7
xor eax, eax
jmp 0x494ff2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x494ffd
mov byte [esp + 0x17], 1
jmp 0x495063
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040b990
mov byte [esp + 0x298], 0xc
lea ebx, [esp + 0x18]
lea edi, [esp + 0x2c]
call fcn.00424a30
mov byte [esp + 0x298], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495046
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea edx, [eax + 2]
jmp 0x495050
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495050
sub eax, edx
sar eax, 1
lea ebp, [eax + ebp + 1]
mov eax, esi
lea edx, [eax + 2]
jmp 0x495070
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495070
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x494fc0
cmp byte [esp + 0x17], cl
je 0x4951bc
xor ecx, ecx
lea ebx, [ebp + 1]
push ecx
lea esi, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], cx
call fcn.00430320
mov byte [esp + 0x298], 0xe
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
xor edi, edi
xor esi, esi
test eax, eax
jbe 0x495157
lea esp, [esp]
mov edx, dword [esp + 0x48]
mov ebp, 8
cmp dword [esp + 0x5c], ebp
jae 0x4950f3
lea edx, [esp + 0x48]
lea ebx, [edx + edi]
cmp esi, eax
jb 0x495103
call fcn.005c475a
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, ebx
jmp 0x495110
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x495110
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x495141
call fcn.005c475a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + esi*4]
mov edx, dword [edx - 0xc]
sub eax, ecx
inc esi
sar eax, 2
lea edi, [edi + edx*2 + 2]
cmp esi, eax
jb 0x4950e0
jmp 0x49515c
mov ebp, 8
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x49516a
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x58]
lea edx, [ecx + ecx]
push edx
push eax
push 7
push str.BootExecute
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x298], 0xb
cmp dword [esp + 0x5c], ebp
jb 0x4951a5
mov eax, dword [esp + 0x48]
push eax
call fcn.005c396f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
mov byte [esp + 0x298], 0xa
lea edx, [esp + 0x2c]
push edx
call fcn.00424990
mov byte [esp + 0x298], 3
cmp dword [esp + 0x78], 8
jb 0x4951ea
mov eax, dword [esp + 0x64]
push eax
call fcn.005c396f
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], cx
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x495229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x28], 0
je 0x49525d
push str.Wow64RevertWow64FsRedirection
push 0x6d6af8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49525d
mov ecx, dword [esp + 0x24]
push ecx
call eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005c397a
add esp, 0x288
ret