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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x591471
push eax
mov eax, 0x33ac
mov dword fs:[0], esp
call fcn.00554450
push ebx
push esi
mov esi, ecx
lea eax, [esi + 0x2c]
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
call fcn.00410fa0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00410ec0
lea ecx, [ebp - 0x33a8]
mov edi, eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x3398]
mov dword [ebp - 0x1c], edi
call fcn.0043f590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3380]
call fcn.0043f590
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3368]
call fcn.0043f590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3350]
call fcn.0043f590
mov byte [ebp - 4], 6
push ebx
lea edx, [ebp - 0x30]
push edx
push 0x11
lea eax, [ebp - 0x33b8]
push eax
push edi
mov byte [ebp - 0x33b8], 0x6f
mov dword [ebp - 0x33b4], 7
mov dword [ebp - 0x33ac], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x413e7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_to_the_server:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x33a8]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x3350]
call fcn.00401000
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x3368]
call fcn.00401000
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3380]
call fcn.00401000
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3398]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], bl
je 0x4143b3
mov edx, dword [ebp - 0x18]
push edx
jmp 0x4143a9
push ebx
lea eax, [ebp - 0x30]
push eax
push 4
lea ecx, [ebp - 0x20]
push ecx
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x414334
cmp dword [ebp - 0x30], ebx
je 0x414334
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ecx
call fcn.004027c0
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x20], ebx
jle 0x4142b5
jmp 0x413ec2
xor ebx, ebx
lea ecx, [ebp - 0x140]
call fcn.0041cb80
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1a60]
call fcn.0043f590
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1a48]
call fcn.0043f590
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a30]
call fcn.0043f590
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1a18]
call fcn.0043f590
mov byte [ebp - 4], 0x16
push ebx
lea edx, [ebp - 0x2c]
push edx
push 0x1930
lea eax, [ebp - 0x1a70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0xea
je 0x413f3e
test esi, esi
je 0x4141f5
movzx ecx, byte [ebp - 0x1a68]
mov edx, dword [ebp - 0x1a6c]
mov eax, dword [ebp - 0x1a70]
mov byte [ebp - 0x40], cl
movzx ecx, byte [ebp - 0x1a67]
mov byte [ebp - 0x3f], cl
lea ecx, [ebp - 0x1a48]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x1a64]
mov dword [ebp - 0x44], eax
mov al, byte [ebp - 0x19ac]
push ecx
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 0x5c], al
call fcn.0043f070
lea edx, [ebp - 0x1a30]
push edx
lea ecx, [ebp - 0xa8]
call fcn.0043f070
lea eax, [ebp - 0x1a18]
push eax
lea ecx, [ebp - 0x90]
call fcn.0043f070
mov ecx, dword [ebp - 0x19b8]
mov eax, dword [ebp - 0x19b0]
mov edx, dword [ebp - 0x19b4]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x1a00]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x19fc]
lea eax, [ebp - 0x1a60]
mov dword [ebp - 0x6c], ecx
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x48], edx
call fcn.0043f070
mov esi, dword [ebp - 0x19a8]
lea ecx, [ebp - 0x1594]
push ecx
lea edx, [ebp - 0x78]
push 0x5aa3a4
push edx
mov dword [ebp - 0x10], esi
call fcn.004021f0
lea eax, [ebp - 0x19a4]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414015
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x19a4]
push eax
lea ecx, [ebp - 0x140]
call fcn.004025a0
lea eax, [ebp - 0x1184]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414040
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1184]
push ecx
lea ecx, [ebp - 0x108]
call fcn.004025a0
lea eax, [ebp - 0xd74]
lea ecx, [eax + 2]
jmp 0x414070
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x414070
sub eax, ecx
sar eax, 1
push eax
lea edx, [ebp - 0xd74]
push edx
lea ecx, [ebp - 0x124]
call fcn.004025a0
lea eax, [ebp - 0x964]
push eax
lea ecx, [ebp - 0x74]
push 0x5aa3a4
push ecx
call fcn.004021f0
lea edx, [ebp - 0x554]
push edx
lea eax, [ebp - 0x70]
push 0x5aa3a4
push eax
call fcn.004021f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0x18
shl esi, 4
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x2c]
push ecx
push esi
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x4140ff
test esi, esi
je 0x414239
test edi, edi
je 0x414239
mov eax, dword [ebp - 0x10]
test eax, eax
jle 0x41414f
mov esi, edi
mov ebx, eax
mov ecx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x10], esp
mov dword [eax + 0xc], edx
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x140]
call fcn.0041d910
add esi, 0x10
dec ebx
jne 0x414112
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x24]
mov esi, dword [edi]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x140]
push eax
push ecx
push esi
mov ecx, edi
call fcn.00410cd0
mov ecx, dword [edi + 4]
mov edx, 0xf0f0ef
sub edx, ecx
cmp edx, 1
jb 0x41422f
inc ecx
mov dword [edi + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x1a18]
call fcn.00401000
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1a30]
call fcn.00401000
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1a48]
call fcn.00401000
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1a60]
call fcn.00401000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.0041cd20
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x20]
jl 0x413ec0
jmp 0x4142b5
call ebx
push eax
push str._nError_occurred_while_get_to_task_options:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1a70]
call fcn.00410f30
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.0041cd20
jmp 0x4142b5
push 0x5ab8e4
call fcn.00579b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_get_to_task_options:__d
call fcn.00554fbd
mov eax, dword [ebp - 0x1c]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x414267
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x1a18]
call fcn.00401000
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1a30]
call fcn.00401000
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x1a48]
call fcn.00401000
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1a60]
call fcn.00401000
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.0041cd20
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x33a8]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x3350]
call fcn.00401000
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x3368]
call fcn.00401000
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x3380]
call fcn.00401000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3398]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x414320
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x14], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_reading_SH_GET_TASKS_from_the_server:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x33a8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3350]
call fcn.00401000
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3368]
call fcn.00401000
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3380]
call fcn.00401000
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3398]
call fcn.00401000
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4143b3
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret