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

Disassembly:
mov eax, 0x45f380
call fcn.0045e9d0
sub esp, 0x130
mov eax, dword [0x40a0f8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], esi
call dword [ecx + 0x78]
cmp dword [ebp - 0x20], esi
jne 0x419a88
lea ecx, [ebp - 0x1c]
call fcn.00412266
lea ecx, [ebp - 0x24]
call fcn.00412266
lea ecx, [ebp - 0x14]
call fcn.00412266
xor eax, eax
jmp 0x419f13
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00412292
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x28]
push 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414dde
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edi, 0x40a7d8
push edi
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.00412266
test bl, bl
je 0x419b69
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 1
call fcn.004149be
lea eax, [ebp - 0x28]
push 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00419fe8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004149be
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00412266
push 0x5c
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.0041a0b9
lea eax, [ebp - 0x18]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.00414dde
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 6
call esi
pop ecx
test eax, eax
pop ecx
je 0x419bae
lea eax, [ebp - 0x28]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.00414dde
mov eax, dword [eax]
push 0x40a7d0
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.00412266
test bl, bl
jne 0x419bae
jmp 0x419bb0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x74]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
call fcn.00412292
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push dword [eax - 8]
call fcn.00414b44
push eax
call fcn.00426dc3
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004123e3
jmp 0x419b1b
mov bl, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00412266
test bl, bl
je 0x419c6b
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0041a00b
mov eax, dword [eax]
push 0x40a7cc
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x18]
inc bl
call fcn.00412266
test bl, bl
je 0x419c1f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414dde
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004149be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00412266
push 0x2f
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x419c35
or eax, 0xffffffff
jmp 0x419c38
sub eax, dword [ebp - 0x14]
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419fe8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004149be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00412266
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.0041a0b9
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
call fcn.004149be
cmp dword [ebp - 0x2c], 0
jne 0x419d25
mov esi, 0x40a7c4
mov eax, esi
test eax, eax
je 0x419c93
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00414a85
mov esi, 0x40a7bc
mov eax, esi
test eax, eax
je 0x419caf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00414a85
lea eax, [ebp - 0x13c]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419f24
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004149be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00412266
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419f24
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.004149be
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00412266
push 0x2f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x419d3b
or eax, 0xffffffff
jmp 0x419d3e
sub eax, dword [ebp - 0x1c]
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414dde
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.004149be
lea ecx, [ebp - 0x18]
call fcn.00412266
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], 3
jne 0x419ec5
lea ecx, [ebp - 0x14]
call fcn.004153f5
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x419dd8
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x403610
push eax
call dword [ecx]
test eax, eax
jl 0x419dd8
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
push 0x4037f0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x419dd8
mov eax, dword [ebp - 0x34]
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
jmp 0x419dd8
push dword [ebp - 0x20]
mov dword [ebp - 4], 3
mov byte [ebp - 4], 0xf
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x419df9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x419e06
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x419e13
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40a240
push dword [ebp - 0x14]
mov dword [ebp - 4], 3
call esi
push 0x40a7b8
mov edi, eax
push dword [ebp - 0x24]
call esi
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x419eb0
test ebx, ebx
je 0x419ea8
mov esi, dword [sym.imp.MSVCRT.dll_fputs]
push ebx
push 0x40a7a8
call esi
push ebx
push dword [ebp - 0x1c]
call esi
push ebx
push 0x40a7a4
call esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov dword [ebp + 8], eax
call esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_malloc]
push edi
push 1
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x48
push ebx
push 1
push dword [ebp + 8]
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
test ebx, ebx
je 0x419ebc
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.0041996b
cmp dword [ebp - 0x2c], 0
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x419ef8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x419ef8
lea ecx, [ebp - 0x1c]
call fcn.00412266
lea ecx, [ebp - 0x24]
call fcn.00412266
lea ecx, [ebp - 0x14]
call fcn.00412266
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4