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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x1a
mov edi, 0x413cf4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c493
xor eax, eax
mov ecx, 0x2054
lea edi, [ebx + 0xbc10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push edi
push 0x23
push edi
call sub.SHELL32.dll_SHGetFolderPathW
lea esi, [ebx + 0x13b30]
push esi
push edi
push 0x413cec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x13d38], eax
jmp 0x48c98e
push 0x13
mov edi, 0x4124f4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c4b1
xor eax, eax
inc eax
or dword [ebx + 0xbc10], eax
jmp 0x48c995
push 0x17
mov edi, 0x412508
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c4cd
and dword [ebx + 0xbc10], 0xfffffffe
jmp 0x48c98e
push 0x19
mov edi, 0x413cd0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c4e9
or dword [ebx + 0xbc10], 4
jmp 0x48c98e
push 0x19
mov edi, 0x413cb4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c505
or dword [ebx + 0xbc10], 8
jmp 0x48c98e
push 0x17
mov edi, 0x412358
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c53a
mov ecx, dword [ebx + 0xfaa0]
mov eax, dword [ebx + 0xfa98]
mov dword [ebx + eax*8 + 0xbc18], ecx
mov ecx, dword [ebx + 0xfaa4]
mov dword [ebx + eax*8 + 0xbc1c], ecx
jmp 0x48c98e
push 0x14
mov edi, 0x413ca0
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c573
mov ecx, dword [ebx + 0xfaa0]
lea eax, [ebx + 0xfa98]
inc dword [eax]
mov eax, dword [eax]
mov dword [ebx + eax*8 + 0xfaa8], ecx
mov ecx, dword [ebx + 0xfaa4]
mov dword [ebx + eax*8 + 0xfaac], ecx
jmp 0x48c98e
push 0x13
mov edi, 0x413c8c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c856
mov ax, word [ebx + 0x976a]
xor edi, edi
dec ax
neg ax
mov dword [ebp - 0x210], edi
sbb eax, eax
and eax, 0xe000
add eax, 0x2000
push eax
push edi
mov dword [ebp - 0x228], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
and dword [ebx + 0xbc10], 0xfffffffe
cmp eax, edi
mov dword [ebp - 0x21c], eax
je 0x48c98e
cmp dword [ebx + 0xfa98], edi
mov dword [ebp - 0x218], edi
jbe 0x48c7a7
lea esi, [ebx + 0x17bf8]
mov dword [ebp - 0x220], esi
jmp 0x48c5f0
mov esi, dword [ebp - 0x220]
mov eax, dword [ebx + 0xbc10]
test al, 8
je 0x48c610
mov eax, dword [ebx + 0xfa98]
lea ecx, [eax - 1]
cmp dword [ebp - 0x218], ecx
je 0x48c62b
add eax, 0xfffffffe
jmp 0x48c61f
test al, 4
je 0x48c6f3
mov eax, dword [ebx + 0xfa98]
dec eax
cmp dword [ebp - 0x218], eax
jne 0x48c6f3
push edi
push dword [esi + 4]
push dword [esi]
push dword [ebx + 0x1be88]
call fcn.004809d9
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [ebp - 0x224], eax
je 0x48c6c4
jmp 0x48c651
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x228]
jbe 0x48c65f
mov eax, dword [ebp - 0x228]
push edi
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x21c]
push dword [ebx + 0x1be88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
push ebx
call fcn.004834eb
mov eax, dword [ebp - 0x210]
sub dword [ebp - 0x224], eax
sub eax, dword [ebp - 0x214]
push 1
cdq
push edx
push eax
push dword [ebx + 0x1be88]
call fcn.004809d9
cmp dword [ebp - 0x224], edi
ja 0x48c64b
push edi
push dword [esi - 0xbfdc]
push dword [esi - 0xbfe0]
push dword [ebx + 0x13d38]
call fcn.004809d9
mov esi, dword [esi - 0x8148]
mov eax, dword [ebp - 0x220]
sub esi, dword [eax - 0xbfe0]
jmp 0x48c784
push edi
push dword [esi - 0x814c]
push dword [esi - 0x8150]
push dword [ebx + 0x13d38]
call fcn.004809d9
mov esi, dword [esi - 0x8148]
mov eax, dword [ebp - 0x220]
sub esi, dword [eax - 0x8150]
jmp 0x48c784
mov eax, dword [ebp - 0x228]
cmp esi, eax
ja 0x48c72b
mov eax, esi
push edi
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x21c]
push dword [ebx + 0x13d38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x210]
lea ecx, [ebp - 0x210]
push ecx
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
push ebx
call fcn.004834eb
mov eax, dword [ebp - 0x210]
sub esi, eax
sub eax, dword [ebp - 0x214]
push 1
cdq
push edx
push eax
push dword [ebx + 0x13d38]
call fcn.004809d9
cmp esi, edi
ja 0x48c71f
inc dword [ebp - 0x218]
mov eax, dword [ebp - 0x218]
add dword [ebp - 0x220], 8
cmp eax, dword [ebx + 0xfa98]
jb 0x48c5ea
mov eax, dword [ebx + 0xbc10]
test al, 0xc
je 0x48c7ed
push dword [ebx + 0x13d38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0x1be88]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx + 0x13b30]
push eax
call esi
lea eax, [ebx + 0x1bc80]
push eax
call esi
or dword [ebx + 0x13d38], 0xffffffff
or dword [ebx + 0x1be88], 0xffffffff
mov eax, dword [ebx + 0x13d38]
cmp eax, 0xffffffff
mov dword [ebx + 0xfa98], edi
mov dword [ebx + 0xfaa0], edi
mov dword [ebx + 0xfaa4], edi
mov dword [ebx + 0xbc10], edi
je 0x48c819
push edi
push edi
push edi
push eax
call fcn.004809d9
mov dword [ebx + 0x17be8], edi
mov dword [ebx + 0x17bf0], edi
mov dword [ebx + 0x17bf4], edi
mov dword [ebx + 0x13d60], edi
mov ebx, dword [ebx + 0x1be88]
cmp ebx, 0xffffffff
je 0x48c845
push edi
push edi
push edi
push ebx
call fcn.004809d9
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x48c98e
push 0x19
mov edi, 0x413c70
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c8c4
xor eax, eax
mov ecx, 0x2054
lea edi, [ebx + 0x13d60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push edi
push 0x23
push edi
call sub.SHELL32.dll_SHGetFolderPathW
lea esi, [ebx + 0x1bc80]
push esi
push edi
push 0x413c68
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x1be88], eax
jmp 0x48c98e
push 0x12
mov edi, 0x413c54
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c8e0
or dword [ebx + 0x13d60], 2
jmp 0x48c98e
push 0x16
mov edi, 0x413c3c
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c8fc
and dword [ebx + 0x13d60], 0xfffffffd
jmp 0x48c98e
push 0x16
mov edi, 0x413c24
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c932
mov ecx, dword [ebx + 0x17bf0]
lea eax, [ebx + 0x17be8]
inc dword [eax]
mov eax, dword [eax]
mov dword [ebx + eax*8 + 0x17bf8], ecx
mov ecx, dword [ebx + 0x17bf4]
mov dword [ebx + eax*8 + 0x17bfc], ecx
jmp 0x48c98e
test byte [ebx + 0x13d60], 2
je 0x48c96d
mov esi, dword [ebp + 0x10]
xor edi, edi
push edi
lea ecx, [ebp - 0x214]
push ecx
push esi
push eax
push dword [ebx + 0x1be88]
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48c98e
lea eax, [ebx + 0x17bf0]
add dword [eax], esi
adc dword [eax + 4], edi
jmp 0x48c98e
test byte [ebx + 0xbc10], 1
je 0x48c993
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 0x10]
push eax
push ebx
call fcn.0048b816
xor eax, eax
inc eax
jmp 0x48c995
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0xc