Function at 0x4691e0
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x214]
push ebx
mov ebx, dword fs:[0x18]
sub esp, 0x24c
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x166b
mov eax, dword [ebx + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Unexpected_error__lu._n
call fcn.0045bef0
lea eax, [ebp - 0x110]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x59db2c
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x166d
mov eax, dword [ebx + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Unexpected_error__lu._n
call fcn.0045bef0
lea eax, [ebp - 0x110]
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x14], 0x20000080
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [ebp - 0x230], eax
call eax
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1671
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Failed_to_create_file__GetLastError____lu._n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
mov edx, 0x75c000
mov eax, 0x55555555
mov ecx, 0x400
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x22c]
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [ebp - 0x234], eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1674
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc], eax
cmp eax, 0x1000
mov dword [esp + 0x10], ecx
mov edx, dword [ebp - 0x234]
sete al
mov dword [esp + 4], str.Unexpected_WriteFile_result__ret__lx__bytes_count__lu__GetLastError____lu._n
test edx, edx
mov dword [esp + 8], edx
setne dl
movzx edx, dl
and edx, eax
mov dword [esp], edx
call fcn.0045bef0
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], esi
lea esi, [ebp - 0x110]
mov dword [ebp - 0x234], ecx
call ecx
sub esp, 4
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x60000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp - 0x230]
call eax
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x167b
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Failed_to_create_file__GetLastError____lu._n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x22c], 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [sym.imp.kernel32.dll_ReadFile]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x75c000
mov dword [esp], esi
mov dword [ebp - 0x230], eax
call eax
sub esp, 0x14
mov dword [ebp - 0x238], eax
call fcn.0057d110
mov edx, dword [ebp - 0x238]
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1681
xor eax, eax
mov ecx, dword [ebx + 0x34]
test edx, edx
jne 0x4694c1
xor eax, eax
cmp ecx, 0x3e5
sete al
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_ReadFile_result__ret__lx__GetLastError____lu._n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1683
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], str.Unexpected_read_size__lu._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
lea eax, [ebp - 0x228]
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetOverlappedResult]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 0x10
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov ecx, dword fs:[0x18]
mov dword [eax + 4], 0x1685
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x238], ecx
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], str.Unexpected_error__lu._n
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1686
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], str.Unexpected_read_size__lu._n
cmp eax, 0x1000
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x228]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x75c000
mov dword [esp], esi
mov eax, dword [ebp - 0x230]
call eax
mov ecx, dword [ebp - 0x238]
mov ebx, eax
sub esp, 0x14
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x230], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x238]
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x168d
mov eax, dword [ecx + 0x34]
test ebx, ebx
jne 0x4696f0
cmp dword [ebp - 0x230], 0x3e5
je 0x469788
mov edx, dword [0x8f0770]
test edx, edx
jne 0x4697b0
cmp dword [ebp - 0x230], 0x26
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Unexpected_ReadFile_result__ret__lx__GetLastError____lu._n
je 0x4697d8
mov dword [esp], 0
call fcn.0045bef0
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1695
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], str.Unexpected_read_size__lu._n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0045bef0
mov dword [esp], esi
mov eax, dword [ebp - 0x234]
call eax
lea eax, [ebp - 0x110]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x597dfd
mov dword [eax + 4], 0x1699
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.Unexpected_error__lu._n
mov dword [esp + 8], eax
call fcn.0045bef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unexpected_ReadFile_result__ret__lx__GetLastError____lu._n
mov dword [esp], 0
call fcn.0045bef0
cmp dword [ebp - 0x230], 0x3e5
jne 0x46965c
lea eax, [ebp - 0x228]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
mov eax, dword [ebp - 0x23c]
call eax
sub esp, 0x10
mov ebx, eax
mov eax, 0x1692
call fcn.0045b740
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x469764
xor eax, eax
cmp ecx, 0x26
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unexpected_result__lx__GetLasttError____lu._n
mov dword [esp], eax
call fcn.0045bef0
jmp 0x46965c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Unexpected_ReadFile_result__ret__lx__GetLastError____lu._n
mov dword [esp], 1
call fcn.0045bef0
jmp 0x46971c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Unexpected_ReadFile_result__ret__lx__GetLastError____lu._n
mov dword [esp], 0
call fcn.0045bef0
jmp 0x46965c
mov dword [esp], 1
call fcn.0045bef0
jmp 0x46965c