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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x591607
push eax
mov eax, 0x33c8
mov dword fs:[0], esp
call fcn.00554450
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x2c], esi
lea eax, [edi + 0x2c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
call fcn.00410fa0
mov dword [ebp - 4], 1
push 0x118
mov dword [ebp - 0x20], esi
call fcn.00448ee2
mov ebx, eax
add esp, 4
mov dword [ebp - 0x34], ebx
cmp ebx, esi
je 0x414b5d
mov dword [ebx], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebx + 4], ebx
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00410ec0
lea ecx, [ebp - 0x33c4]
mov edi, eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x33b4]
mov dword [ebp - 0x18], edi
call fcn.0043f590
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x339c]
call fcn.0043f590
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3384]
call fcn.0043f590
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x336c]
call fcn.0043f590
mov byte [ebp - 4], 0xa
push 0x20
push esi
mov byte [ebp - 0x33d4], 0x6f
mov dword [ebp - 0x33d0], 8
mov dword [ebp - 0x33c8], 0x10
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x414ac5
push 0x10
lea edx, [ebp - 0x33d4]
push edx
push 0x20
push esi
call fcn.00554202
push 0x10
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x10]
push 0x20
push ecx
call fcn.00554202
add esp, 0x20
push 0
lea edx, [ebp - 0x38]
push edx
push 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_SH_SELECT_GTASKS_to_the_server:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33d4]
call fcn.004110a0
mov byte [ebp - 4], 0x11
jmp 0x414a38
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push esi
lea eax, [ebp - 0x38]
push eax
push 4
lea ecx, [ebp - 0x30]
push ecx
push edi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x414a7d
cmp dword [ebp - 0x38], esi
je 0x414a7d
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x30], esi
jle 0x4149cf
lea esp, [esp]
lea ecx, [ebp - 0x15c]
call fcn.0041cb80
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a7c]
call fcn.0043f590
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1a64]
call fcn.0043f590
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x1a4c]
call fcn.0043f590
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x1a34]
call fcn.0043f590
mov byte [ebp - 4], 0x18
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x1930
lea eax, [ebp - 0x1a8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41461b
test esi, esi
je 0x4148e3
mov ecx, dword [ebp - 0x1a88]
mov dl, byte [ebp - 0x1a84]
mov eax, dword [ebp - 0x1a8c]
mov dword [ebp - 0x74], ecx
mov cl, byte [ebp - 0x1a83]
mov byte [ebp - 0x5b], cl
lea ecx, [ebp - 0x1a64]
mov byte [ebp - 0x5c], dl
mov edx, dword [ebp - 0x1a80]
mov dword [ebp - 0x60], eax
mov al, byte [ebp - 0x19c8]
push ecx
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x78], al
call fcn.0043f070
lea edx, [ebp - 0x1a4c]
push edx
lea ecx, [ebp - 0xc4]
call fcn.0043f070
lea eax, [ebp - 0x1a34]
push eax
lea ecx, [ebp - 0xac]
call fcn.0043f070
mov ecx, dword [ebp - 0x19d4]
mov eax, dword [ebp - 0x19cc]
mov edx, dword [ebp - 0x19d0]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ebp - 0x1a18]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x1a1c]
lea eax, [ebp - 0x1a7c]
mov dword [ebp - 0x64], ecx
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x88], edx
call fcn.0043f070
mov esi, dword [ebp - 0x19c4]
lea ecx, [ebp - 0x15b0]
push ecx
lea edx, [ebp - 0x94]
push 0x5aa3a4
push edx
mov dword [ebp - 0x28], esi
call fcn.004021f0
lea eax, [ebp - 0x19c0]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414700
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x19c0]
push eax
lea ecx, [ebp - 0x15c]
call fcn.004025a0
lea eax, [ebp - 0x11a0]
lea edx, [eax + 2]
jmp 0x414730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414730
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x11a0]
push ecx
lea ecx, [ebp - 0x124]
call fcn.004025a0
lea eax, [ebp - 0xd90]
lea edx, [eax + 2]
jmp 0x414760
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414760
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0xd90]
push edx
lea ecx, [ebp - 0x140]
call fcn.004025a0
lea eax, [ebp - 0x980]
push eax
lea ecx, [ebp - 0x90]
push 0x5aa3a4
push ecx
call fcn.004021f0
lea edx, [ebp - 0x570]
push edx
lea eax, [ebp - 0x8c]
push 0x5aa3a4
push eax
call fcn.004021f0
add esp, 0x18
shl esi, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x414921
mov edx, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x3c]
push ecx
push esi
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 0x4147fb
test esi, esi
je 0x414980
mov eax, dword [ebp - 0x28]
test eax, eax
jle 0x414840
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 - 0x28], esp
mov dword [eax + 0xc], edx
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x15c]
call fcn.0041d910
add esi, 0x10
dec ebx
jne 0x414806
mov ebx, dword [ebp - 0x34]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x15c]
push eax
push ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00410cd0
mov edx, 0xf0f0ef
sub edx, dword [ebp - 0x20]
cmp edx, 1
jb 0x414976
inc dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1a34]
call fcn.00401000
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1a4c]
call fcn.00401000
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1a64]
call fcn.00401000
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a7c]
call fcn.00401000
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15c]
call fcn.0041cd20
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, dword [ebp - 0x30]
jl 0x4145a0
jmp 0x4149cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
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], 0x13
lea ecx, [ebp - 0x1a8c]
call fcn.00410f30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15c]
call fcn.0041cd20
jmp 0x4149cf
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a8c]
call fcn.00410f30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15c]
call fcn.0041cd20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33d4]
call fcn.004110a0
mov byte [ebp - 4], 0x19
jmp 0x414b2e
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 ecx, dword [ebp - 0x18]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x1a8c]
call fcn.00410f30
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x15c]
call fcn.0041cd20
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x24]
push edx
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 4
lea eax, [ebp - 0x33c4]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x336c]
call fcn.00401000
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x3384]
call fcn.00401000
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x339c]
call fcn.00401000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33b4]
call fcn.00401000
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x24]
call fcn.004027c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 0
cmp byte [ebp - 0x10], 0
je 0x414a68
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_reading_SH_SELECT_GTASKS_from_the_server:__d
call fcn.00554fbd
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33d4]
call fcn.004110a0
mov byte [ebp - 4], 0x12
jmp 0x414a38
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33c4]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x336c]
call fcn.00401000
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3384]
call fcn.00401000
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x339c]
call fcn.00401000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x33b4]
call fcn.00401000
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24]
call fcn.004027c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
push edx
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 0
cmp byte [ebp - 0x10], 0
je 0x414a68
mov eax, dword [ebp - 0x14]
push eax
jmp 0x414a5e
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x28], esi
call fcn.0055409f
mov byte [ebp - 4], 2
mov dword [ebp - 0x4c], vtable.std::bad_alloc.0
mov byte [ebp - 4], 1
push 0x5f0d68
lea edx, [ebp - 0x4c]
push edx
call fcn.005542ca
int3