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

Disassembly:
push 0x98
mov eax, 0x103fb5b
call fcn.0103d928
mov esi, ecx
mov dword [ebp - 0x58], esi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x1017744
mov eax, dword [esi]
cmp eax, 1
jne 0x101725d
cmp dword [ebp + 8], ebx
jl 0x1017266
cmp eax, 2
jne 0x1017744
cmp dword [esi + 0xc], 1
jne 0x1017276
mov ecx, esi
call fcn.0101715e
mov dword [esi + 0xc], ebx
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x94]
push eax
movzx eax, word [ebp - 0x8e]
push eax
movzx eax, word [ebp - 0x92]
push eax
push 0x1003044
push 0x20
lea eax, [ebp - 0x34]
push eax
call fcn.01016d8e
movzx eax, word [ebp - 0x86]
push eax
movzx eax, word [ebp - 0x88]
push eax
movzx eax, word [ebp - 0x8a]
push eax
movzx eax, word [ebp - 0x8c]
push eax
push 0x1003030
push 0x20
lea eax, [ebp - 0x54]
push eax
call fcn.01016d8e
add esp, 0x34
lea ecx, [ebp - 0x70]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_void_
mov byte [ebp - 4], 1
cmp dword [ebp + 8], 0
jge 0x1017412
push edi
lea ecx, [ebp - 0x58]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov edi, eax
cmp dword [ebp + 0x1c], 0
je 0x1017380
mov byte [ebp - 4], 2
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x64]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov ebx, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov byte [ebp - 4], 5
push dword [ebp + 0x10]
push dword [edi]
push dword [ebp + 0x18]
push dword [ebx]
mov ecx, dword [ebp - 0x68]
push dword [ecx]
push dword [ebp + 0x1c]
push dword [eax]
push 0x1002fc0
lea eax, [ebp - 0x70]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0x24
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 2
jmp 0x10173f9
mov byte [ebp - 4], 6
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x64]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov ebx, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 8
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push dword [edi]
push dword [ebp + 0x18]
push dword [ebx]
mov ecx, dword [ebp - 0x68]
push dword [ecx]
push dword [ebp + 8]
push dword [eax]
push 0x1002f50
lea eax, [ebp - 0x70]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0x24
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
jmp 0x10174c1
push 8
push 0x1002f3c
push dword [ebp - 0x5c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10174c4
push edi
lea ecx, [ebp - 0x64]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov edi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_char_const__
mov ebx, eax
mov byte [ebp - 4], 0xc
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
call sub.framedynos.dll_public:_void___thiscall_CHString::constructor_unsigned_short_int_const__
mov byte [ebp - 4], 0xd
push dword [ebp + 0x10]
push dword [esi]
push dword [ebp + 0x18]
push dword [edi]
push dword [ebx]
push dword [eax]
push 0x1002ed8
lea eax, [ebp - 0x70]
push eax
call sub.framedynos.dll_public:_void___cdecl_CHString::Format_unsigned_short_int_const__
add esp, 0x20
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x60]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
mov esi, dword [ebp - 0x58]
xor ebx, ebx
inc ebx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x60]
call fcn.01007b81
mov byte [ebp - 4], 0xe
xor edi, edi
mov ecx, dword [ebp - 0x60]
cmp ecx, edi
je 0x10174e6
call fcn.01016d06
mov dword [ebp - 0x5c], eax
jmp 0x10174e9
mov dword [ebp - 0x5c], edi
cmp ebx, 1
jne 0x1017725
cmp dword [ebp - 0x5c], edi
je 0x1017725
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x9c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, ebx
jne 0x10176bf
mov eax, dword [ebp - 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101751c
sub eax, edx
xor ecx, ecx
add eax, dword [ebp - 0x9c]
adc ecx, dword [ebp - 0x98]
cmp ecx, dword [esi + 0x1c]
jl 0x10176bf
jg 0x1017547
cmp eax, dword [esi + 0x18]
jbe 0x10176bf
push dword [esi + 4]
lea ecx, [ebp - 0x64]
call fcn.01007b81
mov byte [ebp - 4], 0xf
push dword [esi + 4]
lea ecx, [ebp - 0x58]
call fcn.01007b81
mov byte [ebp - 4], 0x10
push 0x1002ec0
lea ecx, [ebp - 0x6c]
call fcn.01007b2f
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x64]
call fcn.01008638
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x6c]
cmp ecx, edi
je 0x1017592
call fcn.0100830c
mov dword [ebp - 0x6c], edi
push 0x1002ecc
lea ecx, [ebp - 0x68]
call fcn.01007b2f
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x58]
call fcn.01008638
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x68]
cmp ecx, edi
je 0x10175bf
call fcn.0100830c
mov dword [ebp - 0x68], edi
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x10175ca
mov ecx, dword [eax]
jmp 0x10175cc
xor ecx, ecx
mov ebx, dword [ebp - 0x64]
cmp ebx, edi
je 0x10175d7
mov eax, dword [ebx]
jmp 0x10175d9
xor eax, eax
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1017628
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 1
push 1
push 0
push 1
push 0xacba
call fcn.01033a67
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
call fcn.01035c5c
push edi
call esi
mov dword [ebp - 0x84], edi
push 0x1045960
lea eax, [ebp - 0x84]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x1017639
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
cmp ebx, edi
je 0x1017641
mov eax, dword [ebx]
jmp 0x1017643
xor eax, eax
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x101769a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push 1
push 1
push 0
push 1
push 0xacbb
call fcn.01033a67
push edi
call esi
call fcn.01035c5c
mov dword [ebp - 0x74], edi
push 0x1045960
lea eax, [ebp - 0x74]
jmp 0x1017622
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
je 0x10176ad
call fcn.0100830c
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 0xe
cmp ebx, edi
je 0x10176bf
mov ecx, ebx
call fcn.0100830c
mov dword [ebp - 0x64], edi
mov esi, dword [esi + 0x10]
cmp esi, 0xffffffff
je 0x1017725
mov eax, dword [ebp - 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10176cd
sub eax, edx
push edi
lea ecx, [ebp - 0x7c]
push ecx
push eax
push dword [ebp - 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1017725
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 1
push 1
push 0
push 1
push 0xacba
call fcn.01033a67
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
call fcn.01035c5c
push edi
call esi
mov dword [ebp - 0x78], edi
push 0x1045960
lea eax, [ebp - 0x78]
jmp 0x1017622
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
cmp ecx, edi
je 0x1017738
call fcn.0100830c
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.framedynos.dll_public:_void___thiscall_CHString::destructor_void_
or dword [ebp - 4], 0xffffffff
call fcn.0103d993
ret 0x18