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

Disassembly:
push 0x90
mov eax, 0x43c87c
call fcn.0043a0dd
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x78], eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x70], edi
and dword [ebp - 4], 0
test edi, edi
je 0x41697c
mov esi, dword [ebp + 8]
cmp dword [ebx], 1
jne 0x4164dc
test esi, esi
js 0x4164e5
cmp dword [ebx], 2
jne 0x41697c
cmp dword [ebx + 0xc], 1
jne 0x4164f6
mov ecx, ebx
call fcn.004163ef
and dword [ebx + 0xc], 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x5e]
push eax
movzx eax, word [ebp - 0x62]
push eax
push 0x403bfc
push 0x20
lea eax, [ebp - 0x54]
push eax
call fcn.00416adf
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5c]
push eax
push 0x403c0c
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.00416adf
add esp, 0x34
lea ecx, [ebp - 0x80]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_void_]
mov byte [ebp - 4], 1
and dword [ebp - 0x68], 0
test esi, esi
jns 0x416692
push dword [ebp - 0x78]
cmp dword [ebp + 0x1c], 0
je 0x416607
lea ecx, [ebp - 0x6c]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov ebx, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x78]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov esi, eax
mov byte [ebp - 4], 4
push dword [ebp - 0x70]
lea ecx, [ebp - 0x68]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__]
mov byte [ebp - 4], 5
push dword [ebp + 0x10]
push dword [ebx]
push dword [ebp + 0x18]
push dword [edi]
push dword [esi]
push dword [ebp + 0x1c]
push dword [eax]
push 0x403c20
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__]
add esp, 0x24
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
jmp 0x416741
lea ecx, [ebp - 0x78]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov ebx, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov edi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov esi, eax
mov byte [ebp - 4], 8
push dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__]
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push dword [ebx]
push dword [ebp + 0x18]
push dword [edi]
push dword [esi]
push dword [ebp + 8]
push dword [eax]
push 0x403c90
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__]
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 6
jmp 0x416731
push 8
push 0x403d00
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x416754
push dword [ebp - 0x78]
lea ecx, [ebp - 0x78]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov ebx, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov edi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__]
mov esi, eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__]
mov byte [ebp - 4], 0xd
push dword [ebp + 0x10]
push dword [ebx]
push dword [ebp + 0x18]
push dword [edi]
push dword [esi]
push dword [eax]
push 0x403d18
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__]
add esp, 0x20
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x6c]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x74]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
mov ebx, dword [ebp - 0x84]
mov dword [ebp - 0x68], 1
push dword [ebp - 0x80]
lea ecx, [ebp - 0x84]
call fcn.004117f0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x84]
call fcn.00416aac
mov edi, eax
cmp dword [ebp - 0x68], 1
jne 0x416960
test edi, edi
je 0x416960
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x7c]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4168f6
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4167a4
sub ecx, edx
xor eax, eax
add ecx, dword [ebp - 0x7c]
adc eax, dword [ebp - 0x78]
cmp eax, dword [ebx + 0x1c]
jl 0x4168f6
jg 0x4167c9
cmp ecx, dword [ebx + 0x18]
jbe 0x4168f6
push dword [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.004117f0
mov byte [ebp - 4], 0xf
push dword [ebx + 4]
lea ecx, [ebp - 0x68]
call fcn.004117f0
mov byte [ebp - 4], 0x10
push 0x403bf0
lea ecx, [ebp - 0x6c]
call fcn.00411596
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x70]
call fcn.004116d9
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411764
push 0x403d7c
lea ecx, [ebp - 0x6c]
call fcn.00411596
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x68]
call fcn.004116d9
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411764
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x41683e
mov ecx, dword [eax]
jmp 0x416840
xor ecx, ecx
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x41684b
mov eax, dword [esi]
jmp 0x41684d
xor eax, eax
push 0
push ecx
push eax
call dword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
test eax, eax
je 0x4169a8
cmp dword [ebx + 0x10], 0
je 0x416872
push dword [ebx + 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
and dword [ebx + 0x10], 0
test esi, esi
je 0x41687a
mov eax, dword [esi]
jmp 0x41687c
xor eax, eax
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
jne 0x4168de
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
push 1
push 1
push 0
mov ecx, 0xacbb
call fcn.00432381
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.004320fb
mov dword [ebp - 0x8c], esi
push 0x4487ec
lea eax, [ebp - 0x8c]
jmp 0x4169e4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x68]
call fcn.00411764
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00411764
cmp dword [ebx + 0x10], 0xffffffff
je 0x416960
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416901
sub ecx, edx
push 0
lea eax, [ebp - 0x74]
push eax
push ecx
push edi
push dword [ebx + 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x416960
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
push 1
push 1
push 0
mov ecx, 0xacba
call fcn.00432381
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.004320fb
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x90], esi
push 0x4487ec
lea eax, [ebp - 0x90]
jmp 0x4169e4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00411764
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call dword [sym.imp.framedynos.dll_public:_void___thiscall_CHString::destructor_void_]
or dword [ebp - 4], 0xffffffff
call fcn.0043a02f
ret 0x18
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
push 1
push 1
push 0
mov ecx, 0xacba
call fcn.00432381
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.004320fb
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x88], esi
push 0x4487ec
lea eax, [ebp - 0x88]
push eax
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0x98]
call fcn.00411760
mov ecx, eax
call fcn.004396b4
int3