Function at 0x5e3150
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Delete file
Get common file path
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x5874
call fcn.006ab750
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea eax, [esp + 0x4e8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..caf
lea ecx, [esp + 0x4ec]
push ecx
lea esi, [esp + 0x2e8]
call fcn.004ac1f0
lea edx, [esp + 0x4e8]
push edx
mov ecx, esi
mov edx, ebx
call fcn.005d7060
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x4e8]
push eax
lea ecx, [esp + 0x24]
call fcn.005d70b0
cmp dword [esp + 0x20], 0
jne 0x5e31e3
lea ecx, [esp + 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5e31e3
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x2e0]
lea eax, [esp + 0x70]
call fcn.005d8d60
lea eax, [esp + 0x70]
call fcn.005d9140
test al, al
jne 0x5e321c
lea edx, [esp + 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
mov dword [esi], 2
jmp 0x5e3a5f
lea eax, [esp + 0x70]
push eax
call fcn.005d91c0
mov esi, dword [esp + 0x2c8]
cmp esi, 0x30
jbe 0x5e3237
mov esi, 0x30
push esi
call fcn.0069c0de
mov ecx, dword [esp + 0x2c8]
mov edx, dword [esp + 0x2c4]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
mov eax, dword [esp + 0x284]
push edx
push eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x278]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x290], 0
je 0x5e3a3f
cmp dword [esp + 0x28c], 0
jne 0x5e3a3f
mov eax, dword [esp + 0x2bc]
push eax
call fcn.0069c0de
mov ecx, dword [esp + 0x2bc]
mov edx, dword [esp + 0x2b8]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
mov eax, dword [esp + 0x284]
push edx
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x278]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x8f8]
push ecx
call fcn.005dfcd0
fld qword [esp + 0x27c]
mov dx, word [esp + 0x294]
fnstcw word [esp + 0xc]
mov eax, dword [ebx + 0x410]
mov word [esp + 0xad5], dx
movzx cx, byte [eax + 9]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push esi
fldcw word [esp + 0x18]
mov word [esp + 0xadb], cx
push eax
lea ecx, [esp + 0xaa7]
push ecx
fistp qword [esp + 0x34]
mov edx, dword [esp + 0x34]
shl edx, 0x10
mov dword [esp + 0xae5], edx
fldcw word [esp + 0x18]
call fcn.006a4bd0
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2c8]
mov dword [esp + 0xadb], esi
add esi, 0xc
add esp, 0xc
mov dword [esp + 0xa92], esi
push eax
lea esi, [esp + 0xb30]
mov dword [esp + 0x14], edx
call fcn.005f7dd0
mov eax, dword [esp + 0x29c]
xor esi, esi
test eax, eax
jbe 0x5e33fc
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x5e33bf
mov ecx, dword [esp + 0xb2c]
mov dword [ecx + esi*4], 0
jmp 0x5e33ee
cmp eax, 5
mov dword [esp + 0xc], 5
jg 0x5e33d0
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc]
push edx
call fcn.005d9100
mov ecx, dword [esp + 0xb2c]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0xc]
add edi, eax
sub dword [esp + 0x10], eax
mov eax, dword [esp + 0x29c]
add esi, 1
cmp esi, eax
jb 0x5e33a7
mov edx, dword [esp + 0xaf6]
mov edi, 2
push edx
mov dword [esp + 0xb2c], eax
mov dword [esp + 0xaf6], edi
call fcn.0069c8fa
xor ecx, ecx
add esp, 4
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov ecx, dword [esp + 0x2a0]
mov dword [esp + 0xafa], eax
add ecx, 0xffffffff
mov dword [eax], ecx
mov edx, dword [esp + 0xafa]
mov eax, dword [esp + 0x294]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0xafa]
mov esi, 1
mov dword [ecx + 8], esi
mov edx, dword [esp + 0x294]
sub edx, dword [esp + 0x2b4]
mov eax, dword [esp + 0xafa]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0xb13]
add esp, 4
push ecx
mov dword [esp + 0xb0f], edi
call fcn.0069c8fa
xor ecx, ecx
add esp, 4
mov eax, edi
mov edx, 0xc
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov dword [esp + 0xb13], eax
mov dword [eax], esi
mov eax, dword [esp + 0xb13]
add esp, 4
mov dword [eax + 4], 6
mov ecx, dword [esp + 0xb0f]
push 0
mov dword [ecx + 8], esi
mov edx, dword [esp + 0x2a4]
mov eax, dword [esp + 0x2a0]
push 6
push edx
push eax
call fcn.006b2550
mov ecx, dword [esp + 0xb0f]
add eax, esi
push 0
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x2a4]
mov eax, dword [esp + 0x2a0]
push 6
push edx
push eax
call fcn.006b2600
fnstcw word [esp + 0xc]
mov ecx, dword [esp + 0xb0f]
mov dword [ecx + 0x10], eax
movzx eax, word [esp + 0xc]
mov edx, dword [esp + 0xb0f]
or eax, 0xc00
mov dword [edx + 0x14], esi
mov dword [esp + 0x14], eax
fld qword [esp + 0x27c]
fldcw word [esp + 0x14]
fistp qword [esp + 0x28]
fldcw word [esp + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2a4]
mov edx, dword [esp + 0x2a8]
mov dword [esp + 0x9f3], eax
mov dword [esp + 0x925], eax
mov eax, dword [ebx + 0x414]
mov dword [esp + 0x9f7], ecx
mov dword [esp + 0x990], ecx
mov dword [esp + 0x929], ecx
push eax
lea ecx, [esp + 0xb7f]
push ecx
mov dword [esp + 0xa03], edx
mov dword [esp + 0x99c], edx
mov dword [esp + 0x994], esi
mov dword [esp + 0x935], edx
mov dword [esp + 0x963], edi
call fcn.005e2a30
mov edx, dword [ebx + 0x414]
push edx
lea eax, [esp + 0x585b]
push eax
call fcn.0061be50
push 0
push 0x80
push edi
push 0
push 0
push 0xc0000000
add ebx, 0x208
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, 0x4d344120
push 0x1c
mov dword [esp + 0x50], 0x66747970
mov dword [esp + 0x48], 0x71469c
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x6d703432
mov dword [esp + 0x64], 0x69736f6d
mov dword [esp + 0x6c], 3
mov dword [esp + 0x4c], 0x1c
call fcn.0069c0de
mov edi, eax
add esp, 4
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], edi
call fcn.005e8a40
mov edx, dword [esp + 0x48]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
mov eax, dword [esp + 0x2d8]
add eax, 8
push 8
mov dword [esp + 0x38], 0x714684
mov dword [esp + 0x40], 0x6d646174
mov dword [esp + 0x3c], eax
call fcn.0069c0de
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [edx]
add esp, 4
lea ecx, [esp + 0x34]
call eax
bswap eax
mov dword [ebx], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x34]
call eax
bswap eax
mov dword [ebx + 4], eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 8
push ebx
push esi
call edi
mov edx, dword [esp + 0x2d4]
mov eax, dword [esp + 0x2d0]
mov ecx, dword [esp + 0x278]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x29c]
push 0
push 6
push edx
push eax
mov dword [esp + 0x1c], 0
call fcn.006b2550
mov ecx, dword [esp + 0xb45]
mov edi, eax
push ecx
add edi, 1
call fcn.0069c8fa
xor ecx, ecx
add esp, 4
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
xor edi, edi
add esp, 4
cmp dword [esp + 0x29c], edi
mov dword [esp + 0xb45], eax
mov dword [esp + 0xb41], edi
mov dword [esp + 0x10], edi
jbe 0x5e3814
jmp 0x5e3757
mov edi, dword [esp + 0x10]
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea eax, [edx + edx*2]
add eax, eax
mov ecx, edi
sub ecx, eax
jne 0x5e37ad
push 1
lea edx, [esp + 0x2c]
push edx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x5e3788
mov dword [esp + 0x1c], eax
jmp 0x5e3794
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0xb41]
mov ecx, dword [esp + 0xb45]
mov dword [ecx + edx*4], eax
add dword [esp + 0xb41], 1
mov edx, dword [esp + 0xb2c]
mov edi, dword [edx + edi*4]
add dword [esp + 0xc], edi
push edi
call fcn.0069c0de
mov edx, dword [esp + 0x27c]
add esp, 4
push 0
lea ecx, [esp + 0x70]
push ecx
push edi
push eax
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x44]
push eax
push edi
mov edi, dword [esp + 0x24]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0069c8fa
mov eax, dword [esp + 0x14]
add eax, 1
add esp, 4
cmp eax, dword [esp + 0x29c]
mov dword [esp + 0x10], eax
jb 0x5e3753
mov ecx, dword [esp + 0x2d8]
xor eax, eax
cmp ecx, dword [esp + 0xc]
jne 0x5e3832
mov edx, dword [esp + 0x2dc]
cmp edx, eax
je 0x5e38ed
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], 2
call fcn.0069c8fa
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.0069c8fa
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
cmp esi, 0xffffffff
je 0x5e386d
push esi
call ebx
lea esi, [esp + 0xb49]
call fcn.005dfd30
mov edx, dword [esp + 0xb45]
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0xb30]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0xb13]
add esp, 4
push ecx
call fcn.0069c8fa
mov edx, dword [esp + 0xafa]
add esp, 4
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.0069c8fa
mov eax, dword [esp + 0x27c]
add esp, 4
cmp eax, 0xffffffff
je 0x5e38e2
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x904]
mov eax, dword [edx]
lea ecx, [esp + 0x904]
call eax
mov edx, dword [esp + 0xb49]
mov edi, eax
mov eax, dword [edx]
lea ecx, [esp + 0xb49]
call eax
mov edx, dword [esp + 0x95f]
add edi, eax
mov eax, dword [edx]
lea ecx, [esp + 0x95f]
call eax
lea eax, [eax + edi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.0069c0de
add esp, 4
mov edi, eax
push edi
lea ecx, [esp + 0x8fc]
call fcn.005e90d0
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0069c8fa
mov eax, dword [esp + 0x27c]
add esp, 4
cmp eax, 0xffffffff
je 0x5e3982
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x278], 0xffffffff
lea eax, [esp + 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], 0
call fcn.0069c8fa
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.0069c8fa
add esp, 4
cmp esi, 0xffffffff
je 0x5e39bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0xb49]
call fcn.005dfd30
mov edx, dword [esp + 0xb45]
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0xb30]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0xb13]
add esp, 4
push ecx
call fcn.0069c8fa
mov edx, dword [esp + 0xafa]
add esp, 4
push edx
call fcn.0069c8fa
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0069c8fa
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.0069c8fa
mov eax, dword [esp + 0x27c]
add esp, 4
cmp eax, 0xffffffff
je 0x5e3a34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 2
call fcn.0069c8fa
add esp, 4
mov eax, dword [esp + 0x278]
cmp eax, 0xffffffff
je 0x5e3a72
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc