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

Disassembly:
mov eax, 0x45e4bc
call fcn.0045dac0
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 0x4195ce
lea ecx, [ebp - 0x1c]
call fcn.00411e66
lea ecx, [ebp - 0x24]
call fcn.00411e66
lea ecx, [ebp - 0x14]
call fcn.00411e66
xor eax, eax
jmp 0x419a59
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00411e92
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.004149e2
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.00411e66
test bl, bl
je 0x4196af
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 1
call fcn.004145c2
lea eax, [ebp - 0x28]
push 8
push eax
lea ecx, [ebp - 0x14]
call fcn.00419b2e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004145c2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00411e66
push 0x5c
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.00419bff
lea eax, [ebp - 0x18]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.004149e2
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 6
call esi
pop ecx
test eax, eax
pop ecx
je 0x4196f4
lea eax, [ebp - 0x28]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.004149e2
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.00411e66
test bl, bl
jne 0x4196f4
jmp 0x4196f6
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.00411e92
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.00414748
push eax
call fcn.004269d2
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00411fe3
jmp 0x419661
mov bl, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411e66
test bl, bl
je 0x4197b1
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00419b51
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.00411e66
test bl, bl
je 0x419765
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.004149e2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004145c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411e66
push 0x2f
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x41977b
or eax, 0xffffffff
jmp 0x41977e
sub eax, dword [ebp - 0x14]
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419b2e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.004145c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411e66
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.00419bff
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
call fcn.004145c2
cmp dword [ebp - 0x2c], 0
jne 0x41986b
mov esi, 0x40a7c4
mov eax, esi
test eax, eax
je 0x4197d9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00414689
mov esi, 0x40a7bc
mov eax, esi
test eax, eax
je 0x4197f5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00414689
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.00419a6a
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004145c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411e66
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00419a6a
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.004145c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411e66
push 0x2f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x419881
or eax, 0xffffffff
jmp 0x419884
sub eax, dword [ebp - 0x1c]
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004149e2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.004145c2
lea ecx, [ebp - 0x18]
call fcn.00411e66
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], 3
jne 0x419a0b
lea ecx, [ebp - 0x14]
call fcn.00414ff9
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 0x41991e
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push str._D_3
push eax
call dword [ecx]
test eax, eax
jl 0x41991e
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 0x41991e
mov eax, dword [ebp - 0x34]
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
jmp 0x41991e
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 0x41993f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41994c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x419959
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 0x4199f6
test ebx, ebx
je 0x4199ee
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 0x419a02
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.004194b1
cmp dword [ebp - 0x2c], 0
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x419a3e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x419a3e
lea ecx, [ebp - 0x1c]
call fcn.00411e66
lea ecx, [ebp - 0x24]
call fcn.00411e66
lea ecx, [ebp - 0x14]
call fcn.00411e66
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4