Function at 0x43dcc4
Capabilities:
Check http status code

Disassembly:
push 0x184
mov eax, 0x591a44
call fcn.00540b26
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
and dword [ebp - 0x18], 0
push 5
push str.admin
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040677e
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041e705
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00406511
xor eax, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
push eax
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 4
mov byte [ebp - 0x160], al
call fcn.00403c40
mov eax, dword [ebx]
lea ecx, [ebp - 0x160]
push ecx
mov ecx, ebx
mov byte [ebp - 4], 5
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x28]
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x190]
lea eax, [ebp - 0x134]
push eax
call fcn.0043cd73
lea eax, [ebp - 0x160]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x178]
mov dword [ebp - 0x180], ebx
call fcn.00403476
mov dword [ebp - 0x168], ebx
push 2
push 1
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x190]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040353c
mov dword [ebp - 0x18], ebx
mov esi, 0x403f43
mov byte [ebp - 4], 8
push esi
push 2
push 0x18
lea eax, [ebp - 0x190]
push eax
call fcn.00540969
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x10]
push 2
push 1
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.0040353c
push ebx
push ebx
push 0x20
push 2
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push ecx
mov ecx, eax
call fcn.004072c9
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.004042de
lea ecx, [ebp - 0x58]
call fcn.00406511
push dword [ebp - 0x144]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0xb
call fcn.00406a07
push esi
push 1
push 0x18
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
call fcn.00540969
push ebx
push 2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00442eb7
add esp, 0x10
mov ecx, dword [ebp - 0x130]
mov byte [ebp - 4], 0xc
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0x130]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov ecx, dword [ebp - 0x130]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x130]
push 0x7d0
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp dword [edi + 0x10], ebx
je 0x43dec5
push 0xd
push str.Authorization
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0040677e
mov ecx, dword [ebp - 0x130]
lea edx, [ebp - 0x28]
push edi
push edx
mov byte [ebp - 4], 0xd
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00406511
call fcn.004141f6
push 3
push 0x5985dc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0040677e
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push ecx
mov eax, esp
mov byte [ebp - 4], 0xe
mov dword [eax], 0x597ea0
mov dword [eax + 4], 2
lea eax, [ebp - 0x58]
push eax
call fcn.004129a4
add esp, 0x10
mov edx, dword [esi]
mov ecx, esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xf
push eax
call dword [edx + 0x1c]
lea ecx, [ebp - 0x58]
call fcn.00406511
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00406511
mov ecx, dword [ebp - 0x130]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
test ecx, ecx
je 0x43df6d
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ecx
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x636760
push eax
call fcn.004424bb
mov ecx, dword [ebp - 0x138]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x43dfae
call fcn.0040554b
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xc8
jne 0x43e095
push 0xd
push str.Authorization
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.0040677e
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x28]
push edi
push edx
mov byte [ebp - 4], 0x13
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
mov bl, al
call fcn.00406511
test bl, bl
je 0x43e03f
call fcn.0040c312
push 4
push eax
lea ecx, [ebp - 0x128]
call fcn.0040bc1a
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 0x14
push str.Updated_authorization_for_remote_tasks
push eax
call fcn.004014b9
pop ecx
pop ecx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x12
call fcn.0040be01
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x15
push eax
call fcn.0041b401
pop ecx
pop ecx
mov ecx, dword [ebp - 0x150]
lea esi, [ebp - 0x40]
push esi
push eax
mov byte [ebp - 4], 0x16
mov edx, dword [ecx]
call dword [edx + 0x1c]
movzx esi, al
neg esi
sbb esi, esi
add esi, 4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call fcn.00406a07
lea ecx, [ebp - 0x58]
call fcn.00406511
jmp 0x43e0d8
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0x128]
call fcn.0040bc1a
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x128]
push str.Failed_to_execute_remote_task:_POST__admin_n
push eax
call fcn.004014b9
pop ecx
pop ecx
push eax
call fcn.00401499
pop ecx
pop ecx
lea ecx, [ebp - 0x128]
call fcn.0040be01
push 4
pop esi
mov ecx, dword [ebp - 0x148]
test ecx, ecx
je 0x43e0e7
call fcn.0040554b
mov ecx, dword [ebp - 0x12c]
test ecx, ecx
je 0x43e0f6
call fcn.0040554b
push dword [ebp - 0x160]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0x1a
call fcn.00406a07
lea ecx, [ebp - 0x40]
call fcn.00406511
lea ecx, [ebp - 0x70]
call fcn.00406511
mov eax, esi
call fcn.00540ad0
ret 4