Function at 0x180049840
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1800b3dc8]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea r13d, [r8 + 9]
mov ebp, r8d
mov r14, rdx
mov r15, rcx
cmp r8d, r13d
jae case.0x1800498ad.8
lea r12d, [r8 - 0xa0]
xor ebx, ebx
lea rdx, [0x180000000]
nop
cmp r12d, 0x1f
ja case.0x1800498ad.9
movzx eax, byte [rdx + r12 + 0x49c48]
mov ecx, dword [rdx + rax*4 + 0x49c20]
add rcx, rdx
jmp rcx
lea rcx, [0x182954ea0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rdx, [0x180000000]
jmp case.0x1800498ad.9
mov rax, qword [0x1800b3ef0]
test rax, rax
je case.0x1800498ad.9
mov r8, qword [0x1800b3ef8]
mov rdx, r15
mov ecx, dword [r14]
call rax
lea rdx, [0x180000000]
jmp case.0x1800498ad.9
cmp qword [r14 + 0x18], rbx
je 0x1800499af
mov esi, 0x7a
mov eax, esi
sub eax, 0x7a
je 0x18004998c
cmp eax, 0x75
jne 0x180049994
mov rcx, qword [r14 + 0x18]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov edx, 0x20000013
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18004996e
mov edi, 0x88
nop dword [rax]
mov eax, edi
sub eax, 0x87
je 0x180049aac
cmp eax, 1
jne 0x180049962
mov edx, dword [rsp + 0x40]
lea rcx, str.DataInterchangeFormat
call fcn.180032670
dec edi
cmp edi, 0x86
ja 0x180049940
jmp 0x180049994
mov eax, 0xa9
cmp eax, 0xa9
je 0x180049c04
add eax, 0x40b2
cmp eax, 0x40b2
jbe 0x180049973
jmp 0x180049994
mov dword [rsp + 0x44], 4
add esi, 0x75
cmp esi, 0x164
jb 0x180049902
lea rdx, [0x180000000]
jmp case.0x1800498ad.9
mov ecx, 0x5c
mov eax, ecx
sub eax, 0x5c
je 0x1800499c6
cmp eax, 1
je case.0x1800498ad.8
jmp 0x1800499d5
mov rax, qword [r14 + 8]
mov qword [r15], rax
mov dword [rsp + 0x30], 1
inc ecx
cmp ecx, 0x5e
jb 0x1800499b4
jmp case.0x1800498ad.9
mov qword [rsp + 0x38], rbx
test r14, r14
je 0x180049c15
cmp qword [r14 + 0x78], rbx
jmp 0x180049a93
mov rax, qword [r14 + 0x78]
cmp dword [rax], 2
jne 0x180049a11
test byte [rax + 0xc], 0x40
jne 0x180049a11
mov qword [rsp + 0x38], rax
jmp case.0x1800498ad.9
mov rax, qword [rax + 0x60]
test rax, rax
je case.0x1800498ad.9
cmp dword [rax], 2
jne 0x180049a2c
test byte [rax + 0xc], 0x40
jne 0x180049a2c
mov qword [rsp + 0x38], rax
jmp case.0x1800498ad.9
mov rcx, qword [rax + 0x60]
test rcx, rcx
je case.0x1800498ad.9
cmp dword [rcx], 2
jne case.0x1800498ad.9
test byte [rcx + 0xc], 0x40
jne case.0x1800498ad.9
mov qword [rsp + 0x38], rcx
jmp case.0x1800498ad.9
mov rcx, qword [0x182954e60]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [0x180000000]
jmp case.0x1800498ad.9
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0xf3
call fcn.180047240
movzx ecx, byte [r14 + 0x28]
lea rdx, [0x180000000]
sub ecx, eax
movsxd rax, ecx
lea rcx, [r14 + 0x14]
add rcx, rax
mov qword [rsp + 0x30], rcx
jmp case.0x1800498ad.9
cmp qword [rsp + 0x38], rbx
je 0x180049c15
inc ebp
inc r12d
cmp ebp, r13d
jb 0x180049890
jmp case.0x1800498ad.8
mov eax, dword [rsp + 0x40]
cmp eax, 0xc8
je 0x180049abe
cmp eax, 0xce
jne 0x180049b3c
mov rcx, qword [r14 + 0x18]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x38], 0x40
mov edx, 5
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180049b70
mov edi, 0x96
cmp edi, 0x96
je 0x180049b03
cmp edi, 0x2d1e
je case.0x1800498ad.8
jmp 0x180049b2e
mov r8, r15
lea rdx, str._I64d
lea rcx, [rsp + 0x50]
call fcn.18004e710
mov rdx, r15
lea rcx, str.All_defined_Ada_exceptions:
call fcn.180032670
mov dword [rsp + 0x30], 1
add edi, 0x2c88
cmp edi, 0x5910
jbe 0x180049af1
mov dword [rsp + 0x30], ebx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800508f0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov esi, 0x54
cmp esi, 0x54
je 0x180049b84
cmp esi, 0x100
je 0x180049b3c
jmp 0x180049bed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x180049be1
mov edi, 0x127
cmp edi, 0x127
je 0x180049bc7
cmp edi, 0x7c74
je 0x180049bc2
cmp edi, 0xf7c1
je 0x180049bb8
cmp edi, 0x1730e
je case.0x1800498ad.8
jmp 0x180049bd3
mov dword [rsp + 0x30], 1
jmp 0x180049bd3
mov qword [r15], rbx
jmp 0x180049bd3
lea rcx, str._getOclMatRef_ocl_cv__YAAAVoclMat_12_ABV_OutputArray_2__Z
call fcn.180032670
add edi, 0x7b4d
cmp edi, 0x1ed34
jbe 0x180049b96
lea rcx, str.PpapiMsg_PPPInputEvent_HandleFilteredInputEvent
call fcn.180032670
add esi, 0xac
cmp esi, 0x1ac
jb 0x180049b75
jmp 0x180049b3c
lea rcx, str.WM_REFLECT_BASEWM_DRAWITEM
call fcn.180032670
jmp 0x180049b3c
mov rax, rbx
jmp 0x180049b45