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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x59185e
push eax
mov eax, 0x33d0
mov dword fs:[0], esp
call fcn.00554450
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 1
lea eax, [ebx + 0x2c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call fcn.00410fa0
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
push 0x118
sar esi, 4
mov dword [ebp - 0x24], edi
call fcn.00448ee2
add esp, 4
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x41559e
mov dword [eax], eax
mov dword [ebp - 0x28], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 5
mov ecx, ebx
call fcn.00410ec0
mov dword [ebp - 0x14], eax
cmp esi, edi
jle 0x41557c
lea ecx, [ebp - 0x33cc]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x33bc]
call fcn.0043f590
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x33a4]
call fcn.0043f590
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x338c]
call fcn.0043f590
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3374]
call fcn.0043f590
mov byte [ebp - 4], 0xb
mov ebx, dword [ebp + 0x10]
sub ebx, dword [ebp + 0xc]
mov byte [ebp - 0x33dc], 0x6f
and ebx, 0xfffffff0
lea esi, [ebx + 0x10]
push esi
push edi
mov dword [ebp - 0x33d8], 9
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x33d0], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4154f9
push 0x10
lea edx, [ebp - 0x33dc]
push edx
push esi
push edi
call fcn.00554202
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 0x54], eax
cmp esi, eax
je 0x414cfb
lea eax, [edi + 0x10]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov dword [ebp - 0x40], edx
push 0x10
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0xc]
push ebx
push eax
mov dword [ebp - 0x38], ecx
call fcn.00554202
add dword [ebp - 0x2c], 0x10
add esi, 0x10
add esp, 0x10
cmp esi, dword [ebp - 0x54]
jne 0x414cc5
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x414e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_writing_SH_SELECT_TASKS_to_the_server:__d
call fcn.00554fbd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x118
mov dword [ebx + 4], edi
call fcn.00448ee2
add esp, 4
cmp eax, edi
je 0x414e60
mov dword [ebx], eax
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x414d80
mov ecx, ebx
call fcn.004027c0
jmp 0x414d80
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33cc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x3374]
call fcn.00401000
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x338c]
call fcn.00401000
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x33a4]
call fcn.00401000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33bc]
call fcn.00401000
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x28]
call fcn.004027c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
push edx
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x18], 0
je 0x414e08
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x414e42
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x414e37
lea ebx, [ebx]
lea ecx, [ebp + 0x18]
push esi
push ecx
call fcn.00401000
add esi, 0x10
add esp, 8
cmp esi, edi
jne 0x414e20
mov esi, dword [ebp + 0xc]
push esi
call fcn.00448f11
add esp, 4
xor edi, edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], edi
call fcn.0055409f
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0xb
push 0x5f0d68
lea eax, [ebp - 0x40]
push eax
call fcn.005542ca
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
lea ecx, [ebp - 0x4c]
push ecx
push 4
lea edx, [ebp - 0x34]
push edx
push esi
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x415454
cmp dword [ebp - 0x4c], ebx
je 0x415454
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x34], ebx
jle 0x4152d1
lea ecx, [ebp - 0x164]
call fcn.0041cb80
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1a84]
call fcn.0043f590
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x1a6c]
call fcn.0043f590
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x1a54]
call fcn.0043f590
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x1a3c]
call fcn.0043f590
mov byte [ebp - 4], 0x20
push 0
lea eax, [ebp - 0x48]
push eax
push 0x1930
lea ecx, [ebp - 0x1a94]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
cmp eax, 0xea
je 0x414f4d
test esi, esi
je 0x41520d
mov edx, dword [ebp - 0x1a90]
mov ecx, dword [ebp - 0x1a94]
mov al, byte [ebp - 0x1a8c]
mov dword [ebp - 0x7c], edx
mov dl, byte [ebp - 0x1a8b]
mov dword [ebp - 0x68], ecx
mov cl, byte [ebp - 0x19d0]
mov byte [ebp - 0x63], dl
mov byte [ebp - 0x64], al
mov eax, dword [ebp - 0x1a88]
lea edx, [ebp - 0x1a6c]
mov byte [ebp - 0x80], cl
push edx
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0x60], eax
call fcn.0043f070
lea eax, [ebp - 0x1a54]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0043f070
lea ecx, [ebp - 0x1a3c]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.0043f070
mov ecx, dword [ebp - 0x19d4]
mov edx, dword [ebp - 0x19dc]
mov eax, dword [ebp - 0x19d8]
mov dword [ebp - 0x84], ecx
lea ecx, [ebp - 0x1a84]
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x1a24]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x1a20]
push ecx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x6c], eax
call fcn.0043f070
mov esi, dword [ebp - 0x19cc]
lea edx, [ebp - 0x15b8]
push edx
lea eax, [ebp - 0x9c]
push 0x5aa3a4
push eax
mov dword [ebp - 0x10], esi
call fcn.004021f0
lea eax, [ebp - 0x19c8]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415031
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x19c8]
push ecx
lea ecx, [ebp - 0x164]
call fcn.004025a0
lea eax, [ebp - 0x11a8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415060
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x11a8]
push edx
lea ecx, [ebp - 0x12c]
call fcn.004025a0
lea eax, [ebp - 0xd98]
lea ecx, [eax + 2]
jmp 0x415090
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415090
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0xd98]
push eax
lea ecx, [ebp - 0x148]
call fcn.004025a0
lea ecx, [ebp - 0x988]
push ecx
lea edx, [ebp - 0x98]
push 0x5aa3a4
push edx
call fcn.004021f0
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x94]
push 0x5aa3a4
push ecx
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]
push 0
lea edx, [ebp - 0x48]
push edx
mov edi, eax
mov eax, dword [ebp - 0x14]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call ebx
cmp eax, 0xea
je 0x41511f
test esi, esi
je 0x415255
test edi, edi
je 0x415255
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jle 0x415167
mov esi, edi
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], 0x25
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x164]
call fcn.0041d910
add esi, 0x10
dec ebx
jne 0x415130
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x50]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x164]
push eax
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00410cd0
mov edx, 0xf0f0ef
sub edx, dword [ebp - 0x24]
cmp edx, 1
jb 0x41524b
inc dword [ebp - 0x24]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 0x2c
lea ecx, [ebp - 0x1a3c]
call fcn.00401000
mov byte [ebp - 4], 0x2b
lea ecx, [ebp - 0x1a54]
call fcn.00401000
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0x1a6c]
call fcn.00401000
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1a84]
call fcn.00401000
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x164]
call fcn.0041cd20
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x34]
jl 0x414ed0
jmp 0x4152d1
call ebx
push eax
push str._nError_occurred_while_get_to_task_options:__d
call fcn.00554fbd
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x1a3c]
call fcn.00401000
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x1a54]
call fcn.00401000
mov byte [ebp - 4], 0x21
jmp 0x4152a5
push 0x5ab8e4
call fcn.00579b7b
call ebx
push eax
push str._nError_occurred_while_get_to_task_options:__d
call fcn.00554fbd
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x415283
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0x1a3c]
call fcn.00401000
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0x1a54]
call fcn.00401000
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x1a6c]
call fcn.00401000
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x1a84]
call fcn.00401000
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x164]
call fcn.0041cd20
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x118
mov dword [ebx + 4], edi
call fcn.00448ee2
add esp, 4
cmp eax, edi
je 0x415428
mov dword [ebx], eax
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov byte [ebp - 4], 0x2f
lea edx, [ebp - 0x28]
cmp ebx, edx
je 0x415330
mov ecx, ebx
call fcn.004027c0
mov esi, dword [ebp - 0x24]
cmp esi, edi
je 0x415330
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebx]
mov ecx, dword [ecx]
push esi
push edx
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, ebx
call fcn.004102d0
nop
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33cc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x3374]
call fcn.00401000
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x338c]
call fcn.00401000
mov byte [ebp - 4], 0x31
lea ecx, [ebp - 0x33a4]
call fcn.00401000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33bc]
call fcn.00401000
mov byte [ebp - 4], 0x35
mov edi, dword [ebp - 0x28]
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x24], 0
cmp esi, edi
je 0x4153bf
lea ecx, [ecx]
mov edx, dword [esi]
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x10], edx
call fcn.004022c0
push esi
call fcn.00448f11
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp esi, edi
jne 0x4153a0
mov byte [ebp - 4], 2
push edi
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x18], 0
je 0x4153e4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
je 0x41541a
mov edi, dword [ebp + 0x10]
cmp esi, edi
je 0x41540f
lea edx, [ebp + 0x18]
push esi
push edx
call fcn.00401000
add esi, 0x10
add esp, 8
cmp esi, edi
jne 0x4153f8
mov esi, dword [ebp + 0xc]
push esi
call fcn.00448f11
add esp, 4
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], eax
jmp 0x414e4b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], edi
call fcn.0055409f
mov byte [ebp - 4], 0x2e
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0xb
push 0x5f0d68
lea ecx, [ebp - 0x40]
push ecx
call fcn.005542ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nError_occurred_while_reading_SH_SELECT_TASKS_from_the_server:__d
call fcn.00554fbd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x28]
push edx
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea eax, [ebp - 0x33cc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x3374]
call fcn.00401000
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x338c]
call fcn.00401000
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x33a4]
call fcn.00401000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33bc]
call fcn.00401000
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x28]
call fcn.004027c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x18], 0
je 0x41555b
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x415551
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x33dc]
call fcn.004110a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.004027c0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x28]
push edx
call fcn.00448f11
add esp, 4
mov byte [ebp - 4], 1
cmp byte [ebp - 0x18], 0
je 0x41555b
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00408a50
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
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
call fcn.00410df0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0x36
jmp 0x41552b
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], edi
call fcn.0055409f
mov byte [ebp - 4], 3
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
mov byte [ebp - 4], 2
push 0x5f0d68
lea edx, [ebp - 0x40]
push edx
call fcn.005542ca
int3