Function at 0x410599
Capabilities:
Check http status code

Disassembly:
push 0x140
mov eax, 0x534e81
call fcn.004ca35e
mov edi, ecx
mov eax, dword [edi]
sub esp, 0x18
mov ecx, esp
add eax, 0x7ac
xor ebx, ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040906d
lea eax, [ebp - 0x58]
push eax
call fcn.0041259f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
mov eax, dword [edi]
add esp, 4
mov ecx, esp
mov byte [ebp - 4], 1
add eax, 0x884
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040906d
lea eax, [ebp - 0x11c]
push eax
call fcn.0041259f
add esp, 0x1c
push eax
mov eax, dword [edi]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 2
add eax, 0x89c
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040906d
lea eax, [ebp - 0x104]
push eax
call fcn.0041259f
add esp, 0x1c
push eax
mov eax, dword [edi]
sub esp, 0x18
mov ecx, esp
mov byte [ebp - 4], 3
add eax, 0x86c
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040906d
lea eax, [ebp - 0xec]
push eax
call fcn.0041259f
push eax
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 4
push str.client_typePCapp_version
push eax
call fcn.0040d86b
add esp, 0x28
push str.channel_id
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00409d50
push eax
lea ecx, [ebp - 0x8c]
call fcn.00407cd0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0040d820
add esp, 0xc
push str.build_version
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00409d50
push eax
lea ecx, [ebp - 0x74]
call fcn.00407cd0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d820
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00409c3f
lea ecx, [ebp - 0xbc]
call fcn.00409c3f
lea ecx, [ebp - 0x8c]
call fcn.00409c3f
lea ecx, [ebp - 0xd4]
call fcn.00409c3f
lea ecx, [ebp - 0xec]
call fcn.00409c3f
lea ecx, [ebp - 0x104]
call fcn.00409c3f
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0x10
call fcn.00409c3f
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edi]
sub esp, 0x18
mov ecx, esp
add eax, 0x854
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040906d
lea eax, [ebp - 0x14c]
push eax
call fcn.0041259f
mov esi, eax
push 0x54037c
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.004068bc
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.00409d71
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407cd0
mov byte [ebp - 4], 0x13
mov ecx, dword [edi]
lea eax, [ebp - 0xa4]
push esi
push eax
mov ecx, dword [ecx + 0x8e0]
call fcn.0040d198
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00409c3f
lea ecx, [ebp - 0x134]
call fcn.00409c3f
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x10
call fcn.00409c3f
cmp esi, 0xc8
jne 0x4107f9
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.0040900a
lea ecx, [edi + 4]
call fcn.00410101
mov eax, dword [edi]
push dword [eax + 0x998]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x28]
call fcn.00409c3f
lea ecx, [ebp - 0x40]
call fcn.00409c3f
lea ecx, [ebp - 0x58]
call fcn.00409c3f
call fcn.004ca308
ret