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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5fcb
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4e5070]
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 ebx, ecx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x15c], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [ebx + 0x6c], 0x10
lea edi, [ebx + 0x58]
jb 0x42e0fd
mov eax, dword [edi]
jmp 0x42e0ff
mov eax, edi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e167
push 0
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0
push eax
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e149
cmp dword [ebp - 0x158], 0
jne 0x42e179
push 0
lea eax, [ebp - 0x158]
push eax
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x42e179
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x42e410
cmp dword [ebx], 0
je 0x42e160
lea ecx, [ebp - 0x154]
call fcn.00419120
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00498020
add esp, 0xc
mov dword [ebp - 0x160], 0
cmp dword [ebx], 0
mov dword [ebp - 0x15c], 4
mov dword [ebp - 0x164], 0
jle 0x42e387
nop dword [eax]
push 0
call fcn.0049b8cd
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x158]
push 0
push eax
push 4
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
push 0
lea eax, [ebp - 0x158]
mov dword [ebp - 0x160], 0
push eax
push 4
lea eax, [ebp - 0x160]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
push 0
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0x160]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add ecx, eax
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x15c], ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00403a90
push 0
lea eax, [ebp - 0x158]
push eax
push 4
lea eax, [ebp - 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
push 0
lea eax, [ebp - 0x158]
push eax
push 8
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
push 0
lea eax, [ebp - 0x158]
push eax
push 8
lea eax, [ebp - 0x13c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42e384
mov eax, dword [ebp - 0x15c]
add eax, 0x1c
cmp dword [ebp - 0x118], 0x10
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42e36f
cmp dword [ebp - 0x14c], 0
je 0x42e36f
mov ecx, dword [ebp - 0x144]
mov eax, ecx
or eax, dword [ebp - 0x140]
je 0x42e360
sub edi, ecx
sub edi, dword [ebp - 0x13c]
cmp edi, 0x93a80
jl 0x42e357
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x42e36f
test edi, edi
setg byte [ebp - 0x154]
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebx + 0x34]
call fcn.0042e770
mov eax, dword [ebp - 0x164]
inc eax
mov dword [ebp - 0x164], eax
cmp eax, dword [ebx]
jl 0x42e1d0
lea edi, [ebx + 0x58]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 0x34]
test eax, 0xffffffc0
jne 0x42e405
cmp dword [ebx], 0
je 0x42e405
mov dword [ebx], 0
cmp dword [edi + 0x14], 0x10
jb 0x42e3ba
mov eax, dword [edi]
jmp 0x42e3bc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [edi + 0x14], 0x10
jb 0x42e3cb
mov edi, dword [edi]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42e405
push 0
lea eax, [ebp - 0x158]
push eax
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x154]
call fcn.00419170
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.00493122
mov esp, ebp
pop ebp
ret