Function at 0x411ab0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x590cf1
push eax
mov eax, 0x195c
mov dword fs:[0], esp
call fcn.00554450
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2c]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.00410fa0
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00410ec0
lea ecx, [ebp - 0x1958]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1948]
mov esi, eax
call fcn.0043f590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1930]
call fcn.0043f590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1918]
call fcn.0043f590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1900]
call fcn.0043f590
mov byte [ebp - 4], 6
push ebx
lea edx, [ebp - 0x20]
push edx
push 0x11
lea eax, [ebp - 0x1968]
push eax
push esi
mov byte [ebp - 0x1968], 0x6f
mov dword [ebp - 0x1964], 0xd
mov dword [ebp - 0x195c], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x411bff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_SH_SAVE_TASKS_to_the_server:__d
call fcn.00554fbd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1958]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1900]
call fcn.00401000
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1918]
call fcn.00401000
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1930]
call fcn.00401000
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1948]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], bl
je 0x411bed
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], bl
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
pop edi
jne 0x411cb7
cmp eax, 0xea
je 0x411c6d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1968]
call fcn.004110a0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], bl
je 0x411bed
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov byte [ebp - 0x10], bl
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x6f
je 0x411cb7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1968]
call fcn.004110a0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], bl
je 0x411bed
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov byte [ebp - 0x10], bl
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1968]
call fcn.004110a0
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x10], bl
je 0x411ce5
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], bl
mov ecx, dword [ebp - 0xc]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret