Function at 0x4492b5
Capabilities:
Copy file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.004344cc
mov dword [ebp - 0x40], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x3c], edx
call fcn.00431c97
mov dword [esp], str._dir
push 4
pop eax
lea ebx, [ebp + 8]
call fcn.00436e6c
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
pop ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x54], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x50], eax
lea eax, [eax + eax + 0x410]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043719c
mov esi, dword [ebp - 0x20]
add esi, 0x20a
mov dword [ebp - 0x38], esi
add esi, 0x12
lea ecx, [ebp - 0x1c]
mov word [esi], bx
call fcn.0043717e
lea ecx, [ebp - 0x2c]
call fcn.0043717e
lea ecx, [ebp - 0x14]
call fcn.0043717e
lea ecx, [ebp - 0x10]
call fcn.0043717e
push str._base:
mov dword [ebp - 0x28], ebx
push 6
mov edi, 0x49f304
pop eax
lea ebx, [ebp + 8]
mov dword [ebp - 0x48], edi
call fcn.00436e6c
xor ebx, ebx
test al, al
pop ecx
je 0x44938e
mov ecx, dword [ebp - 0x18]
push ebx
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d8a6
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x14]
mov word [eax], bx
mov byte [ebp - 1], 1
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
jne 0x4493be
mov ecx, dword [ebp - 0x18]
add dword [ebp + 8], 2
push ebx
push 0x2c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d8a6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 8]
push eax
call fcn.00431c97
pop ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 0x2c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042d8a6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
call fcn.00431c97
push dword [ebp + 8]
push 0x49f2fc
call fcn.00432c89
add esp, 0xc
test al, al
je 0x4494e4
cmp dword [0x4afe20], ebx
je 0x449a7a
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
jne 0x44940e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x449430
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x449429
xor eax, eax
inc eax
mov ebx, eax
jmp 0x449a7a
push 0x1032
lea ecx, [ebp - 0x18]
call fcn.00437072
push ebx
push ebx
push ebx
push dword [0x4afe20]
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [ebp - 0x18]
push 2
pop edi
mov dword [ebp - 8], 1
push 0x1000
lea eax, [esi + 0x19]
push eax
push dword [ebp - 8]
mov byte [eax], bl
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4494b0
push dword [ebp - 8]
push dword [ebp - 8]
push str._r_n__12d_0x__7X
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
mov byte [esi + 0x18], 0x3a
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
sub eax, edi
push eax
add edi, esi
push edi
push dword [0x4afe20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xffff
jle 0x44945c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x4afe20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
mov dword [0x4afe20], ebx
call fcn.00431c4c
jmp 0x449a7a
mov eax, dword [ebp - 0x1c]
cmp word [eax], bx
jne 0x4494f6
mov ebx, 0x80070057
jmp 0x449a7a
mov edi, dword [ebp + 8]
cmp word [edi], 0x2d
mov dword [ebp - 0xc], ebx
jne 0x44950e
inc edi
inc edi
mov dword [ebp - 0xc], 1
mov dword [ebp + 8], edi
cmp word [edi], bx
je 0x449527
push edi
push str.StartMenu
call fcn.00432c89
test al, al
pop ecx
pop ecx
mov byte [ebp - 2], bl
je 0x44952b
mov byte [ebp - 2], 1
push edi
push str.TaskBand
call fcn.00432c89
test byte [0x4b0aa0], 1
pop ecx
pop ecx
mov byte [ebp - 3], al
jne 0x44955c
or dword [0x4b0aa0], 1
push 0x4969ab
mov dword [0x4b0a9c], ebx
call fcn.004836d8
pop ecx
test byte [0x4b0aa0], 2
jne 0x44957d
or dword [0x4b0aa0], 2
push 0x4969a1
mov dword [0x4b0a98], ebx
call fcn.004836d8
pop ecx
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], 0x4b0a98
jne 0x449590
mov dword [ebp - 0x24], 0x4b0a9c
cmp byte [ebp - 1], bl
jne 0x4495a2
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x44], eax
inc eax
push eax
push esi
push dword [ebp - 0x20]
call fcn.004047cb
add esp, 0xc
cmp dword [ebp - 0x3c], 0xa
jb 0x449869
ja 0x4495cf
cmp dword [ebp - 0x40], ebx
jb 0x449869
cmp byte [ebp - 3], bl
je 0x449676
cmp byte [ebp - 5], bl
jne 0x449676
cmp byte [ebp - 1], bl
jne 0x449737
push str.NODELAYEXPLORER
call fcn.0040f51c
test eax, eax
pop ecx
jg 0x44967f
push 0x1208
lea ecx, [ebp - 8]
call fcn.0043719c
mov edi, dword [ebp - 8]
push ebx
push 0x24
push edi
push ebx
mov word [edi], bx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Explorer.exe
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44966e
push 0x1207
push edi
mov word [edi], bx
push 0x2728
push dword [0x4afe10]
call fcn.00432163
add esp, 0x10
cmp word [edi], bx
je 0x44966e
mov ecx, dword [ebp - 0x18]
push edi
call fcn.00431e4f
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.00431c4c
jmp 0x449a7a
lea ecx, [ebp - 8]
call fcn.00431c4c
cmp byte [ebp - 1], bl
jne 0x449737
push 0x5c
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
je 0x449737
inc eax
inc eax
je 0x449737
push 0x49f27c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x449737
push 0x12
push str.__hide__
push dword [ebp - 0x38]
call fcn.00410b58
mov edi, dword [ebp - 0x44]
lea eax, [edi + edi]
push 0x24
mov dword [ebp - 0x34], eax
add eax, esi
push str..DirExplorer.exe
push eax
call fcn.00410b58
add edi, 0x11
push esi
mov dword [ebp - 0x30], edi
call fcn.00482cde
add esp, 0x1c
mov edi, eax
neg edi
sbb edi, edi
push 0x4b069c
inc edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
neg eax
sbb eax, eax
and eax, str.GlobalPECMD:main:lock:PINT:FILE
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040c445
cmp edi, ebx
je 0x4498fd
push str.NOTMPEXPLORER
call fcn.0040f51c
test eax, eax
pop ecx
jle 0x4498a3
lea ecx, [ebp - 0x3c]
call fcn.0040c462
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 2], bl
je 0x449967
mov eax, dword [ebp - 0x24]
cmp dword [eax], ebx
jne 0x449869
cmp dword [ebp - 0xc], ebx
mov eax, str..FromStartMenu
jne 0x44975a
mov eax, str..ToStartMenu
push eax
mov eax, dword [ebp - 0x44]
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x400
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], ebx
call fcn.0043719c
mov edi, dword [ebp - 0x44]
push ebx
push 0x80
push 3
push ebx
push 7
lea eax, [edi + 2]
push 0x80000000
mov word [eax], bx
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov word [edi], bx
call fcn.00404863
push ebx
lea eax, [ebp - 8]
push eax
push 0x7fe
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
shr dword [ebp - 8], 1
mov eax, 0x3ff
cmp dword [ebp - 8], eax
jbe 0x4497c7
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [edi + eax*2], bx
cmp word [edi], 0xfeff
mov esi, edi
jne 0x4497da
mov esi, dword [ebp - 0x54]
cmp word [esi], bx
jne 0x449850
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x50], 1
mov word [esi], bx
mov dword [ebp - 0x54], 0x7fc
mov eax, str.WIN10FromStartMenu
jne 0x4497ff
mov eax, str.WIN10ToStartMenu
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
push eax
push str.SOFTWAREPELOGONUSRCFG
push 0x80000002
call fcn.00432ad4
add esp, 0x18
test eax, eax
je 0x449822
mov word [esi], bx
cmp word [esi], bx
mov word [esi + 0x7fc], bx
jne 0x449850
xor eax, eax
cmp dword [ebp - 0xc], ebx
push 0x3fe
setne al
push esi
add eax, 0x1505
push eax
push dword [0x4afe10]
call fcn.00432163
add esp, 0x10
mov ecx, dword [ebp - 0x24]
push esi
call fcn.00441a24
lea ecx, [ebp - 0x44]
call fcn.00431c4c
lea ecx, [ebp - 0x18]
call fcn.00402b75
cmp byte [ebp - 2], bl
je 0x449967
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
mov eax, dword [eax]
add esi, 0x1505
cmp eax, ebx
je 0x4499b2
cmp word [eax], bx
je 0x4499b2
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x10]
call fcn.004372a4
mov edi, dword [eax]
jmp 0x449a00
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call fcn.00402d71
mov edi, eax
cmp edi, ebx
pop ecx
jle 0x4498f5
mov eax, dword [ebp - 8]
cmp word [eax], bx
je 0x4498f5
push 0x1a
lea eax, [eax + edi*2]
push 0x49f27c
push eax
call fcn.00410b58
add esp, 0xc
push 1
push dword [ebp - 8]
add edi, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [edi + 1]
push eax
push dword [ebp - 8]
push esi
call fcn.004047cb
add esp, 0xc
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 8]
call fcn.00431c4c
mov eax, dword [ebp - 0x30]
push 0x2a
lea esi, [esi + eax*2]
push str.__PINT__dir__base:__
push esi
call fcn.00410b58
push dword [ebp - 0x34]
add esi, 0x28
push dword [ebp - 0x20]
push esi
call fcn.00410b0e
add esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
inc eax
push eax
push dword [ebp - 0x54]
mov word [esi], 0x22
add esi, 2
push esi
call fcn.004047cb
mov ecx, dword [ebp - 0x18]
add esp, 0x24
push ebx
push ebx
push 1
lea eax, [ebp - 6]
push eax
push ecx
push dword [ebp - 0x38]
mov word [ebp - 6], bx
call fcn.004074ae
lea ecx, [ebp - 0x3c]
mov ebx, eax
call fcn.0040c462
push 0x4b069c
jmp 0x449a74
mov eax, dword [ebp + 8]
cmp word [eax], 0x23
jne 0x449996
or dword [ebp - 8], 0xffffffff
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439d51
mov esi, dword [ebp - 8]
add esp, 0xc
cmp esi, ebx
jge 0x4499b2
jmp 0x4494ec
push dword [ebp + 8]
push str.TaskBand
call fcn.00432c89
test al, al
pop ecx
pop ecx
je 0x4499f0
mov esi, dword [ebp - 0xc]
add esi, 0x150a
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
cmp edi, ebx
jne 0x4499c9
xor ebx, ebx
inc ebx
jmp 0x449a7a
push 0x1001
lea ecx, [ebp - 0x10]
call fcn.004371c5
push 0x1000
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov edi, dword [ebp - 0x10]
cmp word [edi], bx
jne 0x449a00
jmp 0x4499c1
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004372a4
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
cmp word [eax], bx
je 0x4494ec
push eax
call fcn.0040f738
mov esi, eax
push esi
call fcn.00482cde
test eax, eax
pop ecx
pop ecx
jne 0x449a25
push 2
pop ebx
jmp 0x449a7a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0047675f
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp eax, ebx
je 0x4499c1
mov esi, 0x4b069c
push esi
mov word [eax - 2], bx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.GlobalPECMD:main:lock:PINT
lea ecx, [ebp - 0x58]
call fcn.0040c445
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.00405c1f
add esp, 0xc
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.0040c462
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
call fcn.00431c4c
lea ecx, [ebp - 0x2c]
call fcn.00431c4c
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
lea ecx, [ebp - 0x20]
call fcn.00431c4c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8