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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c6b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x541074]
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 0x43c351
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 0x43c3b9
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 0x43c39b
cmp dword [ebp - 0x25c], 0
jne 0x43c3c5
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 0x43c3c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x43c6b7
mov ebx, dword [esi]
test ebx, ebx
jne 0x43c3e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x43c6b7
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.004e2480
add esp, 0xc
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x268], 0
mov esi, 4
test ebx, ebx
jle 0x43c624
push 0
call fcn.004e7fab
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 0x43c624
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 0x43c624
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 0x43c624
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x230]
add eax, 4
add esi, eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402c50
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 0x43c624
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 0x43c624
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 0x43c624
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 0x43c609
cmp dword [ebp - 0x250], 0
je 0x43c609
mov ecx, dword [ebp - 0x248]
mov eax, ecx
or eax, dword [ebp - 0x244]
je 0x43c5f4
sub ebx, ecx
sub ebx, dword [ebp - 0x240]
cmp ebx, 0x93a80
jl 0x43c5eb
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43c609
test ebx, ebx
setg byte [ebp - 0x258]
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
add ecx, 0x34
call fcn.0043ca30
mov ecx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x264]
inc ecx
mov dword [ebp - 0x268], ecx
cmp ecx, dword [eax]
jl 0x43c468
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 0x43c6ac
cmp dword [ebx], 0
je 0x43c6ac
lea esi, [ebx + 0x58]
mov dword [ebx], 0
cmp dword [esi + 0x14], 8
jb 0x43c665
mov eax, dword [esi]
jmp 0x43c667
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x43c676
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 0x43c6ac
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.00421210
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.004c8882
mov esp, ebp
pop ebp
ret