Function at 0x46b4b0
Capabilities:
Check if file exists
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de13a
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push 0
push 0x80
push 3
push 0
push 7
push 0x10005
mov dword [ebp - 0x5c], 0
push edi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x54], eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 1
cmp eax, 0xffffffff
jne 0x46b6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46b55c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x74]
push eax
call fcn.004ac830
push edi
lea ecx, [ebp - 0x8c]
call fcn.00415560
push str..tmp.
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00414c20
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x46b5a0
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.004155f0
xor eax, eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x7c], 0
call fcn.0047bb60
add esp, 4
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
call fcn.004263c0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00414e10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x46b611
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.004155f0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push 0
cmovae eax, dword [ebp - 0x3c]
push 0x80
push 1
push 0
push 7
push 0x10005
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x46b645
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
cmp edi, 0xffffffff
jne 0x46b669
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x74]
push eax
call fcn.004ac830
push 0
lea eax, [ebp - 0x20]
mov word [ebp - 0x14], 0xbbef
push eax
push 3
lea eax, [ebp - 0x14]
mov byte [ebp - 0x12], 0xbf
push eax
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46b6ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x74]
push eax
call fcn.004ac830
mov edx, dword [ebp - 0x54]
mov ecx, dword [esi]
push 0
call fcn.0046af90
add esp, 4
test al, al
jne 0x46b6d3
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00415720
mov edi, dword [ebp - 0x58]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x1c], ax
mov byte [ebp - 0x1a], al
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
push 3
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46b73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x46b73a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x74]
push eax
call fcn.004ac830
push 3
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0xbbef
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x16], 0xbf
push eax
call fcn.004bf3d0
add esp, 0xc
test eax, eax
je 0x46b78d
mov edx, dword [ebp - 0x54]
mov ecx, dword [esi]
call fcn.0046b080
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0046b4b0
mov ecx, dword [esi]
mov edx, eax
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xffffffff
je 0x46b78d
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret 0xc