Function at 0x100e3dd
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x101af30]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x634], edx
je 0x100e432
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x100e432
cmp word [eax], bx
jbe 0x100e432
push edx
add ecx, 0x50
call fcn.0100630b
mov ecx, dword [ebp - 0x638]
cmp esi, ebx
je 0x100e44b
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100e44b
cmp word [esi], bx
jbe 0x100e44b
push eax
add ecx, 0x54
call fcn.0100630b
cmp dword [ebp + 0x14], ebx
je 0x100e641
cmp dword [ebp - 0x634], ebx
je 0x100e641
cmp edi, ebx
je 0x100e641
cmp dword [edi + 4], ebx
je 0x100e641
cmp word [edi], bx
jbe 0x100e641
mov edx, 0x82
xor eax, eax
mov ecx, edx
mov word [ebp - 0x630], bx
lea edi, [ebp - 0x62e]
rep stosd dword es:[edi], eax
mov eax, dword [0x1002060]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1002064]
mov dword [ebp - 8], eax
xor eax, eax
mov ecx, edx
mov word [ebp - 0x424], bx
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
mov ecx, edx
mov word [ebp - 0x218], bx
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x630]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x640], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x100e641
lea eax, [ebp - 0x424]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x100e641
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100e61b
push ebx
lea eax, [ebp - 0x640]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x634]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100e60f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x634], 0xffffffff
lea eax, [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call fcn.0100875f
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x218]
push eax
call esi
mov edi, eax
cmp edi, 5
jle 0x100e61b
mov eax, dword [ebp - 0x63c]
push dword [eax + 4]
mov word [ebp + edi*2 - 0x21e], bx
call esi
sub eax, 3
cmp eax, ebx
jle 0x100e61b
mov ecx, dword [ebp - 0x63c]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*2]
push eax
mov eax, 0x101
sub eax, edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0100d9f7
test eax, eax
jl 0x100e61b
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100e61b
mov esi, dword [ebp - 0x638]
add esi, 0x58
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jle 0x100e5fb
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.010062c9
mov edi, dword [ebp - 0x634]
cmp edi, 0xffffffff
je 0x100e61b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x638]
mov eax, dword [eax + 0x58]
cmp dword [eax - 0xc], ebx
jne 0x100e641
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x424]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01015af2
leave
ret 0x14