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

Disassembly:
push 0x90
mov eax, 0x43c4ce
call fcn.0043a0ca
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 0x4169fe
mov esi, dword [ebp + 8]
cmp dword [ebx], 1
jne 0x416520
test esi, esi
js 0x416529
cmp dword [ebx], 2
jne 0x4169fe
cmp dword [ebx + 0xc], 1
jne 0x41653a
mov ecx, ebx
call fcn.00416433
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 0x402df4
push 0x20
lea eax, [ebp - 0x54]
push eax
call fcn.00416b10
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 0x402e04
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.00416b10
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 0x4166d6
push dword [ebp - 0x78]
cmp dword [ebp + 0x1c], 0
je 0x41664b
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 0x402e18
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 0x416785
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 0x402e88
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 0x416775
push 8
push 0x402ef8
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x416798
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 0x402f10
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.00411394
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x84]
call fcn.00416adb
mov edi, eax
cmp dword [ebp - 0x68], 1
jne 0x4169e2
test edi, edi
je 0x4169e2
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 0x416978
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4167e8
sub ecx, edx
xor eax, eax
add ecx, dword [ebp - 0x7c]
adc eax, dword [ebp - 0x78]
cmp eax, dword [ebx + 0x1c]
jl 0x416978
jg 0x41680d
cmp ecx, dword [ebx + 0x18]
jbe 0x416978
push dword [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.00411394
mov byte [ebp - 4], 0xf
push dword [ebx + 4]
lea ecx, [ebp - 0x68]
call fcn.00411394
mov byte [ebp - 4], 0x10
push 0x402de8
lea ecx, [ebp - 0x6c]
call fcn.00411137
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x70]
call fcn.00411279
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411304
push 0x402f74
lea ecx, [ebp - 0x6c]
call fcn.00411137
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x68]
call fcn.00411279
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411304
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x416882
mov ecx, dword [eax]
jmp 0x416884
xor ecx, ecx
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x41688f
mov eax, dword [esi]
jmp 0x416891
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
jne 0x4168e1
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.004328e1
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.00432659
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x88], esi
push 0x447ca0
lea eax, [ebp - 0x88]
push eax
call sub.msvcrt.dll__CxxThrowException
cmp dword [ebx + 0x10], 0
je 0x4168f4
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 0x4168fc
mov eax, dword [esi]
jmp 0x4168fe
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 0x416960
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.004328e1
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.00432659
mov dword [ebp - 0x8c], esi
push 0x447ca0
lea eax, [ebp - 0x8c]
jmp 0x4168db
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x68]
call fcn.00411304
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00411304
cmp dword [ebx + 0x10], 0xffffffff
je 0x4169e2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416983
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 0x4169e2
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.004328e1
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.00432659
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x90], esi
push 0x447ca0
lea eax, [ebp - 0x90]
jmp 0x4168db
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00411304
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.0043a01c
ret 0x18