Function at 0x12d945b0
Capabilities:
Copy file
Delete file
Move file
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x424
mov eax, dword [0x13198f68]
push ebx
push ebp
xor ebx, ebx
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x43c]
cmp eax, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
je 0x12d945f5
mov eax, dword [edi]
mov ecx, dword [esp + 0x438]
push eax
push ecx
push str.ModMsEdgeCfgFileInner_lpCfgFile__s__dwFileSize__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x14
mov edx, dword [esp + 0x438]
push ebx
push ebx
push 3
push ebx
push 2
push 0x10000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x12d94abe
mov eax, dword [edi]
mov dword [esp + 0x18], ebx
inc eax
push eax
call fcn.12f5bf8b
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x12d94ab3
mov ecx, dword [edi]
xor eax, eax
inc ecx
mov edi, ebp
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x440]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x12d94aa8
mov eax, dword [esp + 0x43c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x12d94aa8
mov edi, str._open_pdf_in_system_reader_:false
or ecx, 0xffffffff
xor eax, eax
push str._open_pdf_in_system_reader_
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, str._open_pdf_in_system_reader_:true
mov dword [esp + 0x18], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov esi, ecx
call fcn.12f5d350
push str._open_pdf_in_system_reader_:false
push ebp
mov edi, eax
call fcn.12f5d350
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x13198f68]
test edi, edi
je 0x12d947a6
test eax, eax
je 0x12d946ee
push str.ModMsEdgeCfgFileInner__Found_cfg_:_open_pdf_in_system_reader_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x12d94a93
mov edi, dword [esp + 0x43c]
mov edx, dword [edi]
inc edx
push edx
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12d94aa8
mov ecx, dword [edi]
xor eax, eax
inc ecx
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub ecx, edx
push ecx
push ebp
push ebx
call fcn.12f5c900
push esi
push str._open_pdf_in_system_reader_:true
push ebx
call fcn.12f5d220
mov edx, dword [esp + 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
not ecx
dec ecx
add edx, edi
sub ecx, edi
push ecx
push edx
push ebx
call fcn.12f5d220
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x13198f68]
sub esi, edi
add esp, 0x24
add esi, ecx
mov dword [esp + 0x1c], 1
test eax, eax
je 0x12d948f8
push str.ModMsEdgeCfgFileInner__Found_cfg_:_open_pdf_in_system_reader_false___change_to_ture
jmp 0x12d948c7
test eax, eax
je 0x12d947be
push str.ModMsEdgeCfgFileInner__Cannot_Found_cfg_:_open_pdf_in_system_reader_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
mov edi, str._download_:
or ecx, 0xffffffff
xor eax, eax
push str._download_:
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov dword [esp + 0x1c], ecx
call fcn.12f5d350
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x12d9480d
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d94a93
push 0x130c77cc
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0xc
jmp 0x12d94a93
mov edi, dword [esp + 0x43c]
mov eax, dword [edi]
lea ecx, [eax + esi + 2]
push ecx
call fcn.12f5bf8b
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x12d94aa8
mov edx, dword [edi]
xor eax, eax
mov edi, ebx
lea ecx, [edx + esi + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
push ebp
push ebx
call fcn.12f5c900
push esi
push str._open_pdf_in_system_reader_:true
push ebx
call fcn.12f5d220
push 1
push 0x130c77c8
push ebx
call fcn.12f5d220
mov edx, dword [esp + 0x34]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x38]
not ecx
dec ecx
add edx, eax
sub ecx, eax
push ecx
push edx
push ebx
call fcn.12f5d220
mov eax, dword [esp + 0x48]
add esp, 0x30
mov dword [esp + 0x1c], 1
lea esi, [esi + eax + 1]
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d948f8
push str.ModMsEdgeCfgFileInner__Found_cfg_:_download__add_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
mov eax, dword [0x13198f68]
add esp, 0xc
test eax, eax
je 0x12d948f8
push 0x25c
push str.ModMsEdgeCfgFileInner_line__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x438]
push eax
push edi
lea ecx, [esp + 0x2c]
push str._s_Bak_08x
push ecx
call fcn.12f5ceef
add esp, 0x10
lea edx, [esp + 0x24]
push 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x12d94a9b
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d94967
push 0x265
push str.ModMsEdgeCfgFileInner_line__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
push 0
push 0
push 3
push 0
push 2
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x12d94a9b
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d949b0
mov eax, dword [esp + 0x18]
push eax
push esi
push 0x26b
push str.ModMsEdgeCfgFileInner_line__d__nWriteSize__d__dwReadSize__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
push 0
push 0
push 0
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x13198f68]
test esi, esi
je 0x12d94a12
test eax, eax
je 0x12d94a0b
push 0x275
push str.ModMsEdgeCfgFileInner_line__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
lea edx, [esp + 0x24]
push edx
jmp 0x12d94a8d
test eax, eax
je 0x12d94a2f
push 0x27b
push str.ModMsEdgeCfgFileInner_line__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov esi, dword [esp + 0x438]
mov word [esp + 0x22c], 0
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x230]
push str._s_WriteFileError
push eax
call fcn.12f5ceef
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 0xc
lea ecx, [esp + 0x22c]
push ecx
push esi
call edi
test eax, eax
je 0x12d94a93
lea edx, [esp + 0x24]
push esi
push edx
call edi
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x20], 1
test ebx, ebx
je 0x12d94aa8
push ebx
call fcn.12f5bf80
add esp, 4
push ebp
call fcn.12f5bf80
add esp, 4
jmp 0x12d94aba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [esp + 0x20]
mov eax, dword [0x13198f68]
test eax, eax
je 0x12d94ae9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x438]
push ecx
push ebp
push edx
push str.ModMsEdgeCfgFileInner_lpCfgFile__s__bRet__d__bMod__d_
push 0x130c74a8
push 0xffffffffffffffff
call fcn.12dad750
add esp, 0x18
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 8