Function at 0x411705
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f5b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xb0
mov eax, dword [0x57c06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc0], esi
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], 7
cmp eax, 3
ja case.default.0x4116f5
jmp dword [eax*4 + 0x411a40]
push 3
push 0x55b154
jmp 0x41171e
push 3
push 0x55b15c
jmp 0x41171e
push 3
push 0x55b164
jmp 0x41171e
push 3
push 0x55b16c
lea ecx, [ebp - 0x2c]
call fcn.0040b450
push 1
push 0x55b174
lea ecx, [ebp - 0x2c]
call fcn.0040c270
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x44]
push 0x55b178
push eax
call fcn.0041f2e0
add esp, 0xc
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x411757
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040c270
lea ecx, [ebp - 0x44]
call fcn.0040b3f0
cmp dword [esi + 0x28], 0
jne 0x41178d
lea ecx, [esi + 0x18]
cmp ecx, esi
je 0x4117a8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x411782
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.0040b450
jmp 0x4117a8
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4117a8
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x41179e
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [esi + 0x18]
call fcn.0040c270
lea ecx, [esi + 0x34]
lea eax, [esi + 0x4c]
mov dword [ebp - 0xb8], ecx
mov edx, ecx
mov dword [ebp - 0xb4], eax
push eax
lea ecx, [ebp - 0xa4]
call fcn.00411db0
add esp, 4
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0040c270
mov dword [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [esi + 0x18]
cmp dword [eax + 0x14], 8
mov ecx, eax
mov dword [ebp - 0xbc], eax
jb 0x411826
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0040c270
mov dword [ebp - 0x7c], 0
xor ecx, ecx
mov dword [ebp - 0x78], 0
push 2
movups xmm0, xmmword [eax]
push 0x551ed0
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x8c]
call fcn.0040c270
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x8c]
movq qword [ebp - 0x64], xmm0
call fcn.0040b3f0
lea ecx, [ebp - 0x44]
call fcn.0040b3f0
lea ecx, [ebp - 0xa4]
call fcn.0040b3f0
mov esi, dword [esi + 0x64]
call fcn.0040b5e0
mov edi, eax
cmp esi, dword [edi + 0x18]
jg 0x4119e4
cmp dword [edi + 0x10], 0
je 0x4119e4
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x44]
call fcn.0041f950
add esp, 4
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
mov dword [ebp - 0x48], 0xf
cmovae edx, dword [ebp - 0x44]
mov ecx, edx
mov byte [ebp - 0x5c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411913
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.0040ee70
lea ecx, [ebp - 0x44]
call fcn.0040ee10
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x411942
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp - 0xb0], 0
setne byte [ebp - 0xa5]
cmp dword [edi + 0x14], 8
jb 0x411965
mov edi, dword [edi]
push 0x55b0f8
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.004ee7d3
mov edi, dword [ebp - 0xb0]
add esp, 0xc
test edi, edi
je 0x4119d1
cmp byte [ebp - 0xa5], 0
jne 0x4119b1
push edi
push 3
lea eax, [ebp - 0xac]
mov word [ebp - 0xac], 0xbbef
push 1
push eax
mov byte [ebp - 0xaa], 0xbf
call fcn.004eee7d
add esp, 0x10
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
push edi
push dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
push 1
push eax
call fcn.004eee7d
push edi
call fcn.004ee8b2
add esp, 0x14
test esi, esi
je 0x4119dc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x5c]
call fcn.0040ee10
lea ecx, [ebp - 0x74]
call fcn.0040b3f0
lea ecx, [ebp - 0x2c]
call fcn.0040b3f0
mov ecx, dword [ebp - 0xb4]
call fcn.0040b3f0
mov ecx, dword [ebp - 0xb8]
call fcn.0040b3f0
mov ecx, dword [ebp - 0xbc]
call fcn.0040b3f0
mov ecx, dword [ebp - 0xc0]
call fcn.0040b3f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e24d7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret