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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437bc2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x44aae4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x84], ecx
push str.Fixing_nanomites...
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42736a
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42737f
mov dword [ebp - 0x48], str.Unable_to_open_dumped_file...
push 0x4465f0
lea ecx, [ebp - 0x48]
push ecx
call fcn.004130b6
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040270b
add esp, 4
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.0040270b
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004104c0
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
call fcn.004104c0
add esp, 0xc
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427437
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00402710
add esp, 4
mov dword [ebp - 0x58], str.Unable_to_read_file_into_memory...
push 0x4465f0
lea ecx, [ebp - 0x58]
push ecx
call fcn.004130b6
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040fee0
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0
jmp 0x42747c
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x44ec44]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 8]
jge 0x4274dc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [0x44ec44]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + ecx]
push ecx
call fcn.00410250
add esp, 8
test eax, eax
jne 0x4274da
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0x14
mov eax, dword [0x44ec44]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx + 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0x14
mov ecx, dword [0x44ec44]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax + 4]
mov dword [ebp - 0x34], eax
jmp 0x4274dc
jmp 0x427473
cmp dword [ebp - 0x38], 0
je 0x4274e8
cmp dword [ebp - 0x34], 0
jne 0x4274fd
mov dword [ebp - 0x5c], str.Section_doesnt_exists_or_has_an_invalid_size...
push 0x4465f0
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004130b6
mov byte [ebp - 0x29], 0xcc
mov dword [ebp - 0x40], 0
jmp 0x427513
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x34]
jae 0x427572
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x40]
cmp ecx, 0x413c9e
jne 0x42752f
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x40], edx
movzx eax, byte [ebp - 0x29]
mov ecx, dword [0x44ec44]
mov edx, dword [ebp - 0x38]
sub edx, dword [ecx + 0x24]
add edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + edx]
cmp edx, eax
jne 0x427570
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edx + 1]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.004266c0
jmp 0x42750a
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push str.original_dumped.exe
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42759b
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4275b0
mov dword [ebp - 0x60], str.Unable_to_create_new_file...
push 0x4465f0
lea edx, [ebp - 0x60]
push edx
call fcn.004130b6
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4275f3
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00402710
add esp, 4
mov dword [ebp - 0x68], str.Unable_to_write_buffer_into_file...
push 0x4465f0
lea eax, [ebp - 0x68]
push eax
call fcn.004130b6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x427625
cmp dword [ebp - 0x14], 0xffffffff
jne 0x42763a
mov dword [ebp - 0x6c], str.Unable_to_create_new_file...
push 0x4465f0
lea eax, [ebp - 0x6c]
push eax
call fcn.004130b6
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42767d
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.00402710
add esp, 4
mov dword [ebp - 0x74], str.Unable_to_write_buffer_into_file...
push 0x4465f0
lea ecx, [ebp - 0x74]
push ecx
call fcn.004130b6
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00402710
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00402710
add esp, 4
jmp 0x4276d0
mov dword [ebp - 4], 0xffffffff
jmp 0x4276e1
mov edx, dword [ebp - 0x18]
push edx
push str.Possible_nanomites:__d
push 0x32
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call fcn.0040fe9e
add esp, 0x10
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x20]
push edx
push str.Validated_in_tables:__d
push 0x32
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call fcn.0040fe9e
add esp, 0x10
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x1c]
push edx
push str.True_nanomites:__d
push 0x32
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
push ecx
call fcn.0040fe9e
add esp, 0x10
mov edx, dword [ebp - 0x84]
mov eax, dword [edx]
push eax
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
push str.Finished...
push 1
mov ecx, dword [0x44ec54]
call fcn.00427830
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8