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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52652b
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 0x4bb701
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 0x4bb769
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 0x4bb74b
cmp dword [ebp - 0x25c], 0
jne 0x4bb775
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 0x4bb775
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4bba67
mov ebx, dword [esi]
test ebx, ebx
jne 0x4bb791
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4bba67
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.004fb530
add esp, 0xc
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x268], 0
mov esi, 4
test ebx, ebx
jle 0x4bb9d4
push 0
call fcn.00500d23
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 0x4bb9d4
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 0x4bb9d4
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 0x4bb9d4
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 0x4bb9d4
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 0x4bb9d4
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 0x4bb9d4
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 0x4bb9b9
cmp dword [ebp - 0x250], 0
je 0x4bb9b9
mov ecx, dword [ebp - 0x248]
mov eax, ecx
or eax, dword [ebp - 0x244]
je 0x4bb9a4
sub ebx, ecx
sub ebx, dword [ebp - 0x240]
cmp ebx, 0x93a80
jl 0x4bb99b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4bb9b9
test ebx, ebx
setg byte [ebp - 0x258]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
add ecx, 0x34
call fcn.004bbde0
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x264]
inc ecx
mov dword [ebp - 0x268], ecx
cmp ecx, dword [eax]
jl 0x4bb818
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 0x4bba5c
cmp dword [ebx], 0
je 0x4bba5c
lea esi, [ebx + 0x58]
mov dword [ebx], 0
cmp dword [esi + 0x14], 8
jb 0x4bba15
mov eax, dword [esi]
jmp 0x4bba17
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x4bba26
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 0x4bba5c
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.0046aee0
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.004e1de4
mov esp, ebp
pop ebp
ret