Function at 0x401510
Capabilities:
Copy file
Create process on windows
Delete file
Get file size
Read file on windows

Disassembly:
sub esp, 0xe38
push ebx
push ebp
mov ebp, dword [esp + 0xe44]
push esi
push edi
lea eax, [esp + 0x838]
push 0x208
push eax
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.MSVCRT.dll_wcsrchr]
lea ecx, [esp + 0x838]
push 0x5c
push ecx
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401a43
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [esp + 0x838]
add ebx, 2
lea eax, [esp + 0x428]
push edx
push eax
mov dword [esp + 0x24], ebx
mov word [ebx], 0
call edi
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x434]
push 0x5c
push edx
mov word [esp + eax*2 + 0x43a], 0
call esi
add esp, 0x14
test eax, eax
je 0x401a43
add eax, 2
push str.filelist
push ebx
mov dword [esp + 0x2c], eax
call edi
add esp, 8
lea eax, [esp + 0x838]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x20], edi
je 0x4019d7
call fcn.004012e0
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40163e
mov edx, dword [esp + 0xe4c]
lea ecx, [esp + 0x28]
push 0x100
push ecx
push 0x3e8
push edx
call ebp
push 5
lea eax, [esp + 0x2c]
push str.DiskGenius_Update
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
jne 0x401a43
call fcn.004012e0
test eax, eax
jne 0x4015ff
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [eax + eax + 2]
push ecx
mov dword [esp + 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
je 0x40197d
mov edx, dword [esp + 0x18]
xor eax, eax
mov edi, esi
push 0
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401912
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x10], edi
mov ax, word [esi + ebx*2]
lea ecx, [esi + ebx*2]
test ax, ax
je 0x4018a0
mov esi, ecx
cmp ax, 0xa
je 0x4016d8
mov ax, word [ecx + 2]
add ecx, 2
inc ebx
test ax, ax
jne 0x4016c5
mov eax, dword [esp + 0x14]
cmp word [eax + ebx*2], 0
jne 0x4016eb
mov dword [esp + 0x10], 1
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
mov word [eax + ebx*2], 0
mov eax, dword [esp + 0x1c]
push esi
push eax
inc ebx
call edi
mov ecx, dword [esp + 0x2c]
push esi
push ecx
call edi
push str.update.exe
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x18
test eax, eax
jne 0x401734
push eax
lea edx, [esp + 0x42c]
lea eax, [esp + 0x83c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40174c
lea ecx, [esp + 0x428]
lea edx, [esp + 0x838]
push ecx
push edx
call fcn.00401120
add esp, 8
mov edi, eax
test edi, edi
jne 0x401819
mov ecx, dword [esp + 0xe4c]
lea eax, [esp + 0x228]
push 0x80
push eax
push 0x3e9
push ecx
call ebp
lea edx, [esp + 0x228]
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
lea ecx, [esp + 0x230]
push ecx
call fcn.00401300
lea edx, [esp + 0x234]
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x14
lea ecx, [esp + 0x28]
push 5
push str.DiskGenius_Update
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
jne 0x401811
push str.update.exe
push esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4017ed
push eax
lea edx, [esp + 0x42c]
lea eax, [esp + 0x83c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x401805
lea ecx, [esp + 0x428]
lea edx, [esp + 0x838]
push ecx
push edx
call fcn.00401120
add esp, 8
mov edi, eax
test edi, edi
je 0x401756
jmp 0x401819
test edi, edi
je 0x40189c
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esp + 0x428]
push eax
call esi
add esp, 4
cmp eax, 4
jbe 0x40187a
lea ecx, [esp + 0x428]
push str..dir
push ecx
call esi
add esp, 4
lea edx, [esp + eax*2 + 0x424]
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40187a
lea eax, [esp + 0x428]
push eax
call fcn.00401460
add esp, 4
test eax, eax
je 0x40189a
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
test eax, eax
je 0x4016b3
jmp 0x4018a0
xor edi, edi
mov esi, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0x10], edi
je 0x4018df
mov eax, dword [esp + 0x24]
push str.DiskGenius.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
lea ecx, [esp + 0x428]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ebx, dword [esp + 0x1c]
jmp 0x401970
mov eax, dword [esp + 0xe4c]
lea edx, [esp + 0x28]
push 0x100
push edx
push 0x3ea
push eax
call ebp
push 0
lea ecx, [esp + 0x2c]
push str.DiskGenius_Update
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, dword [esp + 0x1c]
jmp 0x401970
lea edx, [esp + 0x28]
push edx
call fcn.00401300
mov ecx, dword [esp + 0xe50]
add esp, 4
lea eax, [esp + 0x228]
push 0x100
push eax
push 0x3eb
push ecx
call ebp
lea edx, [esp + 0x28]
lea eax, [esp + 0x228]
push edx
lea ecx, [esp + 0xc4c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea edx, [esp + 0xc48]
push 0
push str.DiskGenius_Update
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [esp + 0x24]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401a32
mov edi, dword [sym.imp.MSVCRT.dll_wcscpy]
push str.filelist
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
lea eax, [esp + 0x838]
push eax
call esi
push 0x409074
push ebx
call edi
add esp, 8
lea ecx, [esp + 0x838]
push ecx
call esi
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0xe38
ret 0x10
lea edx, [esp + 0xc48]
push edx
call fcn.00401300
add esp, 4
lea eax, [esp + 0x28]
push 0x100
push eax
push 0x3eb
push ebp
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0xc48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x22c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x228]
push 0
push str.DiskGenius_Update
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe38
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe38
ret 0x10