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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5262db
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5640a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x264], esi
lea ebx, [esi + 0x1c]
push ebx
mov dword [ebp - 0x26c], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x6c], 8
lea eax, [esi + 0x58]
jb 0x4bb4d1
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bb539
push 0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb51b
cmp dword [ebp - 0x25c], 0
jne 0x4bb545
push 0
lea eax, [ebp - 0x25c]
push eax
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x4bb545
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x4bb837
mov ebx, dword [esi]
test ebx, ebx
jne 0x4bb561
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x4bb837
xor eax, eax
mov dword [ebp - 0x21c], 7
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 0x258], al
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x238], eax
movlpd qword [ebp - 0x248], xmm0
movlpd qword [ebp - 0x240], xmm0
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.004fb2d0
add esp, 0xc
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x268], 0
mov esi, 4
test ebx, ebx
jle 0x4bb7a4
push 0
call fcn.00500b13
add esp, 4
mov dword [ebp - 0x254], esi
mov ebx, eax
lea eax, [ebp - 0x25c]
push 0
push eax
push 4
lea eax, [ebp - 0x238]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
add esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x25c]
push 0
push eax
push 4
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
push 0
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x260]
add eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x230]
add eax, 4
add esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402400
push 0
lea eax, [ebp - 0x25c]
push eax
push 4
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
add esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x25c]
push 0
push eax
push 8
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
add esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x25c]
push 0
push eax
push 8
lea eax, [ebp - 0x240]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4bb7a4
add esi, dword [ebp - 0x25c]
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bb789
cmp dword [ebp - 0x250], 0
je 0x4bb789
mov ecx, dword [ebp - 0x248]
mov eax, ecx
or eax, dword [ebp - 0x244]
je 0x4bb774
sub ebx, ecx
sub ebx, dword [ebp - 0x240]
cmp ebx, 0x93a80
jl 0x4bb76b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4bb789
test ebx, ebx
setg byte [ebp - 0x258]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
add ecx, 0x34
call fcn.004bbbb0
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x264]
inc ecx
mov dword [ebp - 0x268], ecx
cmp ecx, dword [eax]
jl 0x4bb5e8
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebx, dword [ebp - 0x264]
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 0x34]
test eax, 0xffffffc0
jne 0x4bb82c
cmp dword [ebx], 0
je 0x4bb82c
lea esi, [ebx + 0x58]
mov dword [ebx], 0
cmp dword [esi + 0x14], 8
jb 0x4bb7e5
mov eax, dword [esi]
jmp 0x4bb7e7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4bb7f6
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4bb82c
push 0
lea eax, [ebp - 0x25c]
push eax
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call edi
lea ecx, [ebp - 0x258]
call fcn.0046abe0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1bb1
mov esp, ebp
pop ebp
ret