Function at 0x47c6b7
Capabilities:
Get file size
Read file on windows
Read file via mapping
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x2c], esi
mov dword [esi], ebx
cmp byte [edi + 0x14], bl
jne 0x47c8f1
lea eax, [edi + 0x18]
cmp dword [eax], 1
jne 0x47c6fa
mov eax, dword [edi + 0xc]
test eax, eax
je 0x47c706
mov eax, dword [eax]
cmp eax, dword [edi + 0x20]
jne 0x47c706
jmp 0x47c8f1
cmp dword [eax], 2
jne 0x47c72b
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x47c713
mov dword [esi], 4
xor al, al
jmp 0x47c8f3
cmp dword [ecx + 0x2c], ebx
je 0x47c71d
mov ebx, dword [ecx + 0x38]
add ebx, ecx
mov dword [edi + 0xc], ebx
mov ecx, dword [ecx + 0x38]
sub dword [edi + 0x20], ecx
jmp 0x47c8f1
mov cl, byte [edi + 0x15]
xor eax, eax
push ebx
test cl, cl
mov dword [ebp - 0x28], ebx
push ebx
sete al
inc eax
push 3
push ebx
push eax
xor eax, eax
test cl, cl
mov ecx, 0xc0000000
sete al
dec eax
and eax, ecx
add eax, ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x47c78a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
jne 0x47c777
mov dword [esi], 2
jmp 0x47c70c
xor eax, eax
cmp ecx, 2
setne al
lea eax, [eax*2 + 1]
mov dword [esi], eax
jmp 0x47c70c
mov dword [esi], 3
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x47c7ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47c70c
cmp byte [edi + 0x15], bl
je 0x47c7f1
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
pop ecx
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], eax
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47c70c
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x28], eax
je 0x47c85c
jmp 0x47c70c
push ebx
push ebx
push ebx
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47c7a2
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x20]
push eax
call esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x47c70c
mov dword [ebp - 0x18], eax
mov byte [edi + 0x16], 1
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 0x18]
push eax
push edi
call fcn.0047c35a
add esp, 0x14
test al, al
jne 0x47c890
cmp byte [edi + 0x16], bl
jne 0x47c70c
push dword [ebp - 0x18]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
jmp 0x47c70c
mov eax, dword [ebp - 0x1c]
lea ecx, [edi + 0x18]
cmp dword [ecx], 2
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov byte [edi + 0x14], 1
je 0x47c8d2
cmp dword [ecx], 4
je 0x47c8d2
cmp dword [ecx], 1
jne 0x47c8ef
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
push dword [edi + 0x20]
mov dword [edi + 0xc], eax
push dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x14
jmp 0x47c8ef
mov ecx, dword [ebp - 0x18]
mov dword [edi + 8], ecx
cmp dword [ecx + 0x2c], ebx
je 0x47c8e4
mov eax, dword [ecx + 0x38]
add eax, ecx
jmp 0x47c8e6
mov eax, ebx
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 0x38]
sub dword [edi + 0x20], eax
mov dword [esi], ebx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret 4