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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de49a
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 0x46ba52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46b8cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x74]
push eax
call fcn.004acc20
push edi
lea ecx, [ebp - 0x8c]
call fcn.00415980
push str..tmp.
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00415040
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
cmp eax, 8
jb 0x46b910
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00415a10
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.0047bed0
add esp, 4
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0xa8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
call fcn.004267f0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.00415230
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x94]
cmp eax, 8
jb 0x46b981
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.00415a10
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 0x46b9b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
cmp edi, 0xffffffff
jne 0x46b9d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x74]
push eax
call fcn.004acc20
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 0x46ba1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x74]
push eax
call fcn.004acc20
mov edx, dword [ebp - 0x54]
mov ecx, dword [esi]
push 0
call fcn.0046b300
add esp, 4
test al, al
jne 0x46ba43
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.00415b40
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 0x46baaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x46baaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x74]
call fcn.0047e390
push 0x51d3f8
lea eax, [ebp - 0x74]
push eax
call fcn.004acc20
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.004bf820
add esp, 0xc
test eax, eax
je 0x46bafd
mov edx, dword [ebp - 0x54]
mov ecx, dword [esi]
call fcn.0046b3f0
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0046b820
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 0x46bafd
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.00493bec
mov esp, ebp
pop ebp
ret 0xc