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

Disassembly:
push 0xffffffffffffffff
push 0x5d5687
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push str.Wow64DisableWow64FsRedirection
xor esi, esi
push str.kernel32.dll
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 0x47652b
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.005985f0
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.0040b8a0
mov byte [esp + 0x298], 1
push eax
lea eax, [esp + 0x24]
push eax
mov ebx, str.msbootres.txt
call fcn.004176f0
add esp, 8
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040b950
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476951
lea edx, [esp + 0x1c]
push edx
call fcn.00499170
add esp, 4
mov byte [esp + 0x298], 4
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str.m.db
call fcn.004176f0
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.0040b950
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x1c]
call fcn.0040b950
lea ecx, [esp + 0x18]
push ecx
call fcn.00499170
add esp, 4
mov byte [esp + 0x298], 6
push eax
lea edx, [esp + 0x20]
push edx
mov ebx, str._bmc.txt
call fcn.004176f0
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.0040b950
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040b950
lea eax, [esp + 0x18]
push eax
call fcn.00499170
add esp, 4
mov byte [esp + 0x298], 8
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebx, str._bwc.txt
call fcn.004176f0
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.0040b950
mov byte [esp + 0x298], 3
lea ecx, [esp + 0x18]
call fcn.0040b950
mov edx, dword [esp + 0x20]
push edx
call esi
lea ecx, [esp + 0x60]
call fcn.00433810
mov byte [esp + 0x298], 0xa
mov esi, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x4766ea
lea esi, [esp + 0x64]
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x1b], 0
call fcn.0041d3b0
mov byte [esp + 0x298], 0xb
xor ebp, ebp
cmp word [esi], bp
je 0x47690c
lea esp, [esp]
mov ecx, str.msbtsc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47673d
test dx, dx
je 0x476739
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47673d
add eax, 4
add ecx, 4
test dx, dx
jne 0x476717
xor eax, eax
jmp 0x476742
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47674d
mov byte [esp + 0x17], 1
jmp 0x4767b3
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040b8a0
mov byte [esp + 0x298], 0xc
lea ebx, [esp + 0x18]
lea edi, [esp + 0x2c]
call fcn.0041ce00
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 0x476796
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 0x4767a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4767a0
sub eax, edx
sar eax, 1
lea ebp, [eax + ebp + 1]
mov eax, esi
lea edx, [eax + 2]
jmp 0x4767c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4767c0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], cx
lea esi, [esi + eax*2 + 2]
jne 0x476710
cmp byte [esp + 0x17], cl
je 0x47690c
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.00439bb0
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 0x4768a7
lea esp, [esp]
mov edx, dword [esp + 0x48]
mov ebp, 8
cmp dword [esp + 0x5c], ebp
jae 0x476843
lea edx, [esp + 0x48]
lea ebx, [edx + edi]
cmp esi, eax
jb 0x476853
call fcn.0059471a
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, ebx
jmp 0x476860
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x476860
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp esi, edx
jb 0x476891
call fcn.0059471a
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 0x476830
jmp 0x4768ac
mov ebp, 8
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x4768ba
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 0x4768f5
mov eax, dword [esp + 0x48]
push eax
call fcn.0059392f
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.0041cd80
mov byte [esp + 0x298], 3
cmp dword [esp + 0x78], 8
jb 0x47693a
mov eax, dword [esp + 0x64]
push eax
call fcn.0059392f
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 0x476979
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 0x4769ad
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4769ad
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.0059393a
add esp, 0x288
ret