Function at 0x417399
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
push 0x668
mov eax, 0x41b776
call fcn.0040aa0a
cmp dword [ebp + 0x10], 1
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x668], esi
mov dword [ebp - 0x664], edi
jne 0x417961
test edi, edi
je 0x4173d6
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
xor ebx, ebx
lea eax, [ebp - 0x40f]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x410], bl
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp eax, 2
jne 0x417471
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x648]
push eax
call esi
mov edi, eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x630]
mov dword [ebp - 4], 6
push eax
call esi
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 7
jb 0x41742f
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x417437
mov eax, dword [eax]
push edi
push eax
push 0x406c6c
push 0x345
push 0x406ac0
call fcn.00414fd3
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push 2
pop eax
jmp 0x417b3e
cmp eax, 0xd
jne 0x4174e8
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov edi, eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 8
push eax
call esi
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 9
jb 0x4174aa
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4174b2
mov eax, dword [eax]
push edi
push eax
push 0x406c6c
push 0x34b
push 0x406ac0
call fcn.004145d3
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
push 3
jmp 0x41746b
cmp eax, 0x1c
jne 0x417562
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov edi, eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0xa
push eax
call esi
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x417521
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x417529
mov eax, dword [eax]
push edi
push eax
push 0x406c6c
push 0x351
push 0x406ac0
call fcn.0041466f
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
push 5
jmp 0x41746b
cmp eax, 0x12
je 0x4175de
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov edi, eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0xc
push eax
call esi
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 0xd
jb 0x41759b
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4175a3
mov eax, dword [eax]
push edi
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0x406c6c
push 0x357
push 0x406ac0
call fcn.00415452
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
jmp 0x417b34
push 0x406c7c
push dword [ebp - 0x66c]
call dword [sym.imp.MSVCR120.dll__wfopen]
mov dword [ebp - 0x670], eax
pop ecx
pop ecx
test eax, eax
jne 0x4176a2
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov dword [ebp - 0x664], eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0xe
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x664]
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x417645
mov eax, dword [eax]
mov dword [ebp - 0x664], eax
cmp dword [esi + 0x14], 8
jb 0x41764d
mov esi, dword [esi]
call dword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [ebp - 0x664]
push ecx
push esi
push dword [eax]
push 0x406c6c
push 0x363
push 0x406ac0
call fcn.0041470b
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
test edi, edi
je 0x41769b
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push 6
jmp 0x41746b
push 0x406c84
push esi
call dword [sym.imp.MSVCR120.dll__wfopen]
mov dword [ebp - 0x664], eax
pop ecx
pop ecx
test eax, eax
jne 0x417766
push dword [ebp - 0x66c]
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov dword [ebp - 0x664], eax
push dword [ebp - 0x668]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0x10
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x664]
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 8
jb 0x417709
mov eax, dword [eax]
mov dword [ebp - 0x664], eax
cmp dword [esi + 0x14], 8
jb 0x417711
mov esi, dword [esi]
call dword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [ebp - 0x664]
push ecx
push esi
push dword [eax]
push 0x406c6c
push 0x36e
push 0x406ac0
call fcn.004147d9
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
test edi, edi
je 0x41775f
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push 7
jmp 0x4178a7
push dword [ebp - 0x670]
lea eax, [ebp - 0x410]
push 0x400
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
push dword [ebp - 0x670]
mov dword [ebp - 0x668], eax
call dword [sym.imp.MSVCR120.dll_ferror]
add esp, 0x14
test eax, eax
jne 0x4178bc
mov eax, dword [ebp - 0x668]
test eax, eax
jle 0x4177ce
push dword [ebp - 0x664]
push eax
lea eax, [ebp - 0x410]
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp - 0x668]
jne 0x417840
mov eax, dword [ebp - 0x668]
cmp eax, 0x400
je 0x417766
mov edi, dword [ebp - 0x670]
push edi
call dword [sym.imp.MSVCR120.dll_feof]
test eax, eax
pop ecx
setne al
test al, al
jne 0x417813
push 0x406ca8
push 0x4017d0
push 0x406ce4
push 0x406c8c
push 0x39b
push 0x406b70
push ebx
call fcn.00411613
add esp, 0x1c
push dword [ebp - 0x664]
mov esi, dword [sym.imp.MSVCR120.dll_fclose]
call esi
push edi
call esi
push dword [ebp - 0x66c]
call dword [sym.imp.MSVCR120.dll__wunlink]
add esp, 0xc
neg eax
sbb eax, eax
and eax, 9
inc eax
jmp 0x417b3e
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
mov esi, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0x14
jb 0x41785f
mov esi, dword [esi]
call dword [sym.imp.MSVCR120.dll__errno]
push esi
push dword [eax]
push 0x406c6c
push 0x38d
push 0x406ac0
call fcn.00414975
push ebx
push 1
lea ecx, [ebp - 0x660]
call fcn.00409f8b
test edi, edi
je 0x417898
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push dword [ebp - 0x664]
call dword [sym.imp.MSVCR120.dll_fclose]
pop ecx
push 9
pop esi
push dword [ebp - 0x670]
call dword [sym.imp.MSVCR120.dll_fclose]
pop ecx
mov eax, esi
jmp 0x417b3e
test edi, edi
je 0x4178ca
call dword [sym.imp.MSVCR120.dll__errno]
mov eax, dword [eax]
mov dword [edi], eax
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov edi, eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0x12
push eax
call esi
mov esi, eax
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 0x13
jb 0x417900
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x417908
mov esi, dword [esi]
call dword [sym.imp.MSVCR120.dll__errno]
push edi
push esi
push dword [eax]
push 0x406c6c
push 0x381
push 0x406ac0
call fcn.004148a7
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
push dword [ebp - 0x670]
mov esi, dword [sym.imp.MSVCR120.dll_fclose]
call esi
push dword [ebp - 0x664]
call esi
pop ecx
pop ecx
push 8
jmp 0x41746b
push 3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x417a8c
push 2
push 8
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x417a2a
push esi
lea eax, [ebp - 0x618]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x674]
xor ebx, ebx
push ebx
push eax
push ebx
push ebx
push 0x20000004
push 1
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov edi, eax
test edi, edi
je 0x417b0a
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
lea eax, [ebp - 0x630]
push eax
call esi
mov dword [ebp - 0x668], eax
push dword [ebp - 0x66c]
lea eax, [ebp - 0x648]
mov dword [ebp - 4], ebx
push eax
call esi
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 1
cmp dword [ecx + 0x14], 8
jb 0x417a06
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x417a0e
mov eax, dword [eax]
push ecx
push eax
push edi
push 0x406c6c
push 0x30f
push 0x406ac0
call fcn.00414f05
jmp 0x417aee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x630]
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
push eax
call esi
mov dword [ebp - 0x668], eax
push ebx
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 2
push eax
call esi
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 8
jb 0x417a6b
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x417a73
mov eax, dword [eax]
push ecx
push eax
push edi
push 0x406c6c
push 0x315
push 0x406ac0
call fcn.00414e37
jmp 0x417aec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x630]
push esi
mov esi, dword [sym.imp.LoggingPlatform.DLL_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____stdcall_StripPrivateInfoFromString_wchar_t_const__]
push eax
call esi
mov dword [ebp - 0x668], eax
push ebx
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 4
push eax
call esi
mov ecx, dword [ebp - 0x668]
mov byte [ebp - 4], 5
cmp dword [ecx + 0x14], 8
jb 0x417acd
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 8
jb 0x417ad5
mov eax, dword [eax]
push ecx
push eax
push edi
push 0x406c6c
push 0x31b
push 0x406ac0
call fcn.00415452
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x648]
call fcn.00409f8b
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00409f8b
mov eax, dword [ebp - 0x664]
test eax, eax
je 0x417b16
mov dword [eax], edi
sub edi, ebx
je 0x417b3b
dec edi
dec edi
je 0x417469
sub edi, 3
je 0x4174e4
sub edi, 3
je 0x41755b
push 4
jmp 0x41746b
xor eax, eax
inc eax
call fcn.0040a9be
ret 0x14