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

Disassembly:
push 0x90
mov eax, 0x441f8c
call fcn.0043f86d
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 0x4170bd
mov esi, dword [ebp + 8]
cmp dword [ebx], 1
jne 0x416c1d
test esi, esi
js 0x416c26
cmp dword [ebx], 2
jne 0x4170bd
cmp dword [ebx + 0xc], 1
jne 0x416c37
mov ecx, ebx
call fcn.00416b2f
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 0x403ccc
push 0x20
lea eax, [ebp - 0x54]
push eax
call fcn.0041721f
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 0x403cdc
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.0041721f
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 0x416dd3
push dword [ebp - 0x78]
cmp dword [ebp + 0x1c], 0
je 0x416d48
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 0x403cf0
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 0x416e82
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 0x403d60
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 0x416e72
push 8
push 0x403dd0
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x416e95
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 0x403de8
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.00411f31
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x84]
call fcn.004171ec
mov edi, eax
cmp dword [ebp - 0x68], 1
jne 0x4170a1
test edi, edi
je 0x4170a1
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 0x417037
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416ee5
sub ecx, edx
xor eax, eax
add ecx, dword [ebp - 0x7c]
adc eax, dword [ebp - 0x78]
cmp eax, dword [ebx + 0x1c]
jl 0x417037
jg 0x416f0a
cmp ecx, dword [ebx + 0x18]
jbe 0x417037
push dword [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.00411f31
mov byte [ebp - 4], 0xf
push dword [ebx + 4]
lea ecx, [ebp - 0x68]
call fcn.00411f31
mov byte [ebp - 4], 0x10
push 0x403cc0
lea ecx, [ebp - 0x6c]
call fcn.00411cd7
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x70]
call fcn.00411e1a
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411ea5
push 0x403e4c
lea ecx, [ebp - 0x6c]
call fcn.00411cd7
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x68]
call fcn.00411e1a
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x6c]
call fcn.00411ea5
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x416f7f
mov ecx, dword [eax]
jmp 0x416f81
xor ecx, ecx
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x416f8c
mov eax, dword [esi]
jmp 0x416f8e
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 0x4170e9
cmp dword [ebx + 0x10], 0
je 0x416fb3
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 0x416fbb
mov eax, dword [esi]
jmp 0x416fbd
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 0x41701f
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.00432a92
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.0043280c
mov dword [ebp - 0x8c], esi
push 0x44fddc
lea eax, [ebp - 0x8c]
jmp 0x417125
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x68]
call fcn.00411ea5
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x70]
call fcn.00411ea5
cmp dword [ebx + 0x10], 0xffffffff
je 0x4170a1
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417042
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 0x4170a1
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.00432a92
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.0043280c
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x90], esi
push 0x44fddc
lea eax, [ebp - 0x90]
jmp 0x417125
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00411ea5
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.0043f7bf
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.00432a92
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
call fcn.0043280c
push esi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov dword [ebp - 0x88], esi
push 0x44fddc
lea eax, [ebp - 0x88]
push eax
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0x98]
call fcn.00411ea1
mov ecx, eax
call fcn.0043ee14
int3