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

Disassembly:
mov eax, 0x45d9bc
call fcn.0045cfc0
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 0x4191e9
lea ecx, [ebp - 0x1c]
call fcn.00411a66
lea ecx, [ebp - 0x24]
call fcn.00411a66
lea ecx, [ebp - 0x14]
call fcn.00411a66
xor eax, eax
jmp 0x419674
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00411a92
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.0041460d
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edi, 0x40a888
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.00411a66
test bl, bl
je 0x4192ca
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 1
call fcn.004141ed
lea eax, [ebp - 0x28]
push 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00419749
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004141ed
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00411a66
push 0x5c
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.0041981a
lea eax, [ebp - 0x18]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.0041460d
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 6
call esi
pop ecx
test eax, eax
pop ecx
je 0x41930f
lea eax, [ebp - 0x28]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.0041460d
mov eax, dword [eax]
push 0x40a880
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.00411a66
test bl, bl
jne 0x41930f
jmp 0x419311
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.00411a92
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.00414373
push eax
call fcn.00426566
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00411be3
jmp 0x41927c
mov bl, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411a66
test bl, bl
je 0x4193cc
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.0041976c
mov eax, dword [eax]
push 0x40a87c
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x18]
inc bl
call fcn.00411a66
test bl, bl
je 0x419380
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.0041460d
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004141ed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411a66
push 0x2f
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x419396
or eax, 0xffffffff
jmp 0x419399
sub eax, dword [ebp - 0x14]
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419749
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004141ed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411a66
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.0041981a
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
call fcn.004141ed
cmp dword [ebp - 0x2c], 0
jne 0x419486
mov esi, 0x40a874
mov eax, esi
test eax, eax
je 0x4193f4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.004142b4
mov esi, 0x40a86c
mov eax, esi
test eax, eax
je 0x419410
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.004142b4
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.00419685
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004141ed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411a66
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419685
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.004141ed
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411a66
push 0x2f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x41949c
or eax, 0xffffffff
jmp 0x41949f
sub eax, dword [ebp - 0x1c]
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041460d
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.004141ed
lea ecx, [ebp - 0x18]
call fcn.00411a66
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], 3
jne 0x419626
lea ecx, [ebp - 0x14]
call fcn.00414c24
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 0x419539
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push str._D_3
push eax
call dword [ecx]
test eax, eax
jl 0x419539
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
push 0x403828
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x419539
mov eax, dword [ebp - 0x34]
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
jmp 0x419539
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 0x41955a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x419567
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x419574
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 0x40a868
mov edi, eax
push dword [ebp - 0x24]
call esi
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x419611
test ebx, ebx
je 0x419609
mov esi, dword [sym.imp.MSVCRT.dll_fputs]
push ebx
push 0x40a858
call esi
push ebx
push dword [ebp - 0x1c]
call esi
push ebx
push 0x40a854
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 0x41961d
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.004190cc
cmp dword [ebp - 0x2c], 0
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x419659
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x419659
lea ecx, [ebp - 0x1c]
call fcn.00411a66
lea ecx, [ebp - 0x24]
call fcn.00411a66
lea ecx, [ebp - 0x14]
call fcn.00411a66
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4