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

Disassembly:
mov eax, 0x45cb6c
call fcn.0045c170
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 0x418e3e
lea ecx, [ebp - 0x1c]
call fcn.00411656
lea ecx, [ebp - 0x24]
call fcn.00411656
lea ecx, [ebp - 0x14]
call fcn.00411656
xor eax, eax
jmp 0x4192c9
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00411682
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.004141fd
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov edi, 0x40a80c
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.00411656
test bl, bl
je 0x418f1f
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], 1
call fcn.00413ddd
lea eax, [ebp - 0x28]
push 8
push eax
lea ecx, [ebp - 0x14]
call fcn.0041939e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00413ddd
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00411656
push 0x5c
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.0041946f
lea eax, [ebp - 0x18]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.004141fd
mov eax, dword [eax]
push edi
push eax
mov byte [ebp - 4], 6
call esi
pop ecx
test eax, eax
pop ecx
je 0x418f64
lea eax, [ebp - 0x28]
push 5
push eax
lea ecx, [ebp - 0x14]
call fcn.004141fd
mov eax, dword [eax]
push 0x40a804
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.00411656
test bl, bl
jne 0x418f64
jmp 0x418f66
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.00411682
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.00413f63
push eax
call fcn.00426238
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004117d3
jmp 0x418ed1
mov bl, 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411656
test bl, bl
je 0x419021
lea eax, [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.004193c1
mov eax, dword [eax]
push 0x40a800
push eax
call esi
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x18]
inc bl
call fcn.00411656
test bl, bl
je 0x418fd5
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.004141fd
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00413ddd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411656
push 0x2f
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x418feb
or eax, 0xffffffff
jmp 0x418fee
sub eax, dword [ebp - 0x14]
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041939e
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00413ddd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411656
push 0x5f
push 0x3a
lea ecx, [ebp - 0x14]
call fcn.0041946f
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x24]
push eax
call fcn.00413ddd
cmp dword [ebp - 0x2c], 0
jne 0x4190db
mov esi, 0x40a7f8
mov eax, esi
test eax, eax
je 0x419049
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.00413ea4
mov esi, 0x40a7f0
mov eax, esi
test eax, eax
je 0x419065
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00413ea4
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.004192da
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00413ddd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411656
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004192da
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00413ddd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00411656
push 0x2f
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
test eax, eax
pop ecx
jne 0x4190f1
or eax, 0xffffffff
jmp 0x4190f4
sub eax, dword [ebp - 0x1c]
inc eax
lea ecx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004141fd
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00413ddd
lea ecx, [ebp - 0x18]
call fcn.00411656
cmp dword [ebp - 0x2c], 0
mov dword [ebp - 4], 3
jne 0x41927b
lea ecx, [ebp - 0x14]
call fcn.00414814
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 0x41918e
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push str._D_3
push eax
call dword [ecx]
test eax, eax
jl 0x41918e
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x34]
push edx
push 0x403870
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41918e
mov eax, dword [ebp - 0x34]
push 0
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
jmp 0x41918e
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 0x4191af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4191bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4191c9
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 0x40a7ec
mov edi, eax
push dword [ebp - 0x24]
call esi
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x419266
test ebx, ebx
je 0x41925e
mov esi, dword [sym.imp.MSVCRT.dll_fputs]
push ebx
push 0x40a7dc
call esi
push ebx
push dword [ebp - 0x1c]
call esi
push ebx
push 0x40a7d8
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 0x419272
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.00418d21
cmp dword [ebp - 0x2c], 0
pop ecx
mov dword [ebp - 0x3c], eax
jne 0x4192ae
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4192ae
lea ecx, [ebp - 0x1c]
call fcn.00411656
lea ecx, [ebp - 0x24]
call fcn.00411656
lea ecx, [ebp - 0x14]
call fcn.00411656
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4