Function at 0x405fa0
Capabilities:
Copy file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4522d0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebp
xor ebp, ebp
push 0x4603b0
mov dword [0x4603b0], ebp
call fcn.00403640
add esp, 4
test eax, eax
je 0x4064fd
mov ecx, dword [0x45fb58]
mov eax, dword [0x45fbac]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x462620
push ebp
push 0x1007
push ecx
mov dword [0x462634], 0x449b40
mov dword [0x462624], eax
call ebx
add dword [0x45fbac], 1
mov eax, 0x4603b0
mov dword [0x4604b8], ebp
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x406015
push esi
push edi
mov edi, 0x4604b8
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406030
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x2e
push 0x4604b8
rep movsb byte es:[edi], byte [esi]
call fcn.00415170
add esp, 8
cmp eax, ebp
mov dword [0x46017c], eax
je 0x4064d6
push 0xc
push str.NanoFix.exe
push eax
call fcn.00415aa0
add esp, 0xc
push ebp
push 0x4604b8
push 0x4603b0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebp
push 0x80
push 3
push ebp
push 3
push 0xc0000000
push 0x4604b8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4060c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4604b8
push str.CREATEFILE_ERROR__nCould_not_open_repaired_dump_file:__s__error__d_n
push 0x4610a8
call fcn.00415641
add esp, 0x10
jmp 0x4060ff
mov edx, dword [0x452114]
push 4
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x460f88], eax
jne 0x406131
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAlloc_error__d_nDumping_process
push 0x4610a8
call fcn.00415641
add esp, 0xc
push 0x1010
push 0x448c14
push 0x4610a8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00415a83
add esp, 0x9c
ret
mov ecx, dword [0x452114]
push 0
push 0x460f1c
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x460f88]
mov dword [0x462730], eax
mov dword [0x45bb04], eax
mov edx, dword [eax + 0x3c]
lea ecx, [edx + eax + 4]
mov dword [0x453610], ecx
mov edx, dword [eax + 0x3c]
lea edx, [edx + eax + 0x18]
mov dword [0x4535a4], edx
mov edx, dword [eax + 0x3c]
lea eax, [edx + eax + 0xf8]
mov dword [0x453618], eax
movzx ecx, word [ecx + 2]
add ecx, 1
cmp ecx, 0x12
jl 0x4061ed
mov eax, dword [0x45fb58]
mov edx, dword [0x45fbac]
push 0x462620
push 0
push 0x1007
push eax
mov dword [0x462634], 0x449c14
mov dword [0x462624], edx
call ebx
mov eax, dword [0x45fbac]
mov ecx, dword [0x45fb58]
push 0x462620
push 0
add eax, 1
push 0x1007
push ecx
mov dword [0x45fbac], eax
mov dword [0x462634], 0x449c40
mov dword [0x462624], eax
call ebx
add dword [0x45fbac], 1
push 0x94
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00415c90
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 5
cmp ecx, dword [esp + 0x18]
push 0x104
push 0x460bf0
sbb ebx, ebx
push 0
neg ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
mov ecx, 0x41
mov esi, 0x460bf0
mov edi, 0x4607d0
push 0x4607d0
rep movsd dword es:[edi], dword [esi]
call fcn.00415170
add esp, 8
test eax, eax
mov dword [0x460074], eax
je 0x406281
add eax, 1
test ebx, ebx
mov dword [0x460074], eax
je 0x406271
push 0x10
push str.Rwb32_vista.bin
jmp 0x406278
push 0xa
push str.Rwb32.bin
push eax
call fcn.00415aa0
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push 0x4607d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x4062d6
test ebx, ebx
je 0x4062b2
push str.Couldnt_find_open_Rwb32_vista.bin._nUnable_to_repair_target
jmp 0x4062b7
push str.Couldnt_find_open_Rwb32.bin._nUnable_to_repair_target
push 0x4610a8
call fcn.00415641
add esp, 8
push 0x4610a8
call fcn.00403960
add esp, 4
jmp 0x406116
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
add edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041501c
add esp, 4
push 0
push 0x460f1c
mov esi, eax
mov eax, dword [esp + 0x18]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x45fb58]
mov edx, dword [0x45fbac]
push 0x462620
push 0
push 0x1007
push eax
mov dword [0x462634], 0x449d00
mov dword [0x462624], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x461af4]
add dword [0x45fbac], 1
shl ecx, 4
add ecx, ebx
push ecx
push str..nano
call fcn.00405dc0
mov eax, dword [0x45fb58]
mov edx, dword [0x45fbac]
add esp, 8
push 0x462620
push 0
push 0x1007
push eax
mov dword [0x462634], 0x449d28
mov dword [0x462624], edx
call dword [sym.imp.USER32.dll_SendMessageA]
add dword [0x45fbac], 1
mov eax, dword [0x4535a4]
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x10]
add edi, edi
mov dword [esi], ecx
mov edx, dword [0x461af4]
mov dword [esi + 8], edx
add edi, edi
mov dword [esi + 0xc], edi
mov eax, dword [0x4535a4]
mov ecx, dword [eax + 0x1c]
add ecx, dword [eax + 0x14]
push 0
mov dword [esi + 0x64], ecx
mov edx, dword [0x4535a4]
mov eax, dword [edx + 4]
mov dword [esi + 0x6c], eax
mov ecx, dword [0x453618]
mov edx, dword [ecx + 0xc]
mov eax, dword [0x4535a4]
add edx, 0x70
mov dword [eax + 0x10], edx
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x462730]
mov ecx, dword [eax + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ecx + eax + 0xf8]
push 0
mov dword [0x453618], eax
mov edx, dword [eax + 0x14]
mov eax, dword [0x460f88]
push 0x460f20
push edx
push eax
push ebp
call ebx
mov ecx, dword [0x4535bc]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x460f20
push edi
push esi
push ebp
call ebx
mov edx, dword [0x461af4]
mov eax, dword [0x4619dc]
push 0
push 0x460f20
shl edx, 4
push edx
push eax
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x45fb58]
mov ecx, dword [0x45fbac]
push 0x462620
push 0
push 0x1007
push edx
mov dword [0x462634], 0x449d40
mov dword [0x462624], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4619dc]
add dword [0x45fbac], 1
test eax, eax
je 0x4064cc
push eax
call fcn.00415d0a
add esp, 4
mov dword [0x4619dc], 0
mov eax, 1
jmp 0x406118
push str.No_valid_.exe_extension_found_in_save_dumped_file
push 0x4610a8
call fcn.00415641
add esp, 8
push 0x1010
push 0x448c14
push 0x4610a8
push ebp
jmp 0x406110
mov ecx, dword [esp + 0x9c]
mov dword [0x4603b0], ebp
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00415a83
add esp, 0x9c
ret