Function at 0x180002cd8
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xb0
mov rsi, qword [rsp + 0x100]
mov r13, qword [0x18000d358]
mov r12, rcx
test rsi, rsi
mov ebx, 8
je 0x180002d12
and dword [rsi], 0
mov rbp, qword [rsp + 0xf8]
mov edi, dword [rsp + 0x100]
lea rcx, [rsp + 0x50]
call fcn.180003118
test eax, eax
je 0x180002ffe
test r12, r12
je 0x180002d52
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.180002bd0
test eax, eax
je 0x180002dd4
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov r8d, 0xea60
mov rdx, r13
call fcn.18000331c
test eax, eax
mov ebx, eax
jne 0x180002dcf
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x20], ebx
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x180002dbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x180002dcf
jmp 0x180002dcd
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
cmp ebx, 0xffffffff
jne 0x180002ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x180002ff4
cmp qword [rsp + 0x68], 0
jne 0x180002fa3
and dword [rsp + 0xa4], ebx
mov rcx, qword [rsp + 0x88]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov ebx, eax
jne 0x180002e2a
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [rsp + 0xa0]
test edi, edi
jne 0x180002f9d
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x100]
lea r8, [rsp + 0xa4]
mov edx, 0x20000013
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x100], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180002f24
cmp dword [rsp + 0x100], 4
jne 0x180002f37
cmp dword [rsp + 0xa4], 0
je 0x180002f37
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x30], 0
and dword [rsp + 0x100], 0
xor r8d, r8d
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x100]
lea edx, [r8 + 0x16]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov r8d, dword [rsp + 0x100]
mov rcx, qword [0x18000d350]
add r8d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180002f98
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x100]
mov r8, rbx
mov edx, 0x16
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180002f7c
mov eax, dword [rsp + 0x100]
mov byte [rax + rbx], 0
mov qword [rsp + 0x68], rbx
jmp 0x180002f9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov edi, eax
je 0x180002f9d
cmp eax, 0x2ef3
jne 0x180002f9d
mov rax, qword [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [0x18000d398]
lea ecx, [r8 + 2]
mov r9d, 0xea60
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
or eax, 0xffffffff
cmp edi, 1
cmove edi, eax
test edi, edi
jne 0x180002f9d
jmp 0x180002df7
mov rcx, qword [0x18000d350]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002f9d
mov edi, 8
test edi, edi
mov ebx, edi
jne 0x180002faf
lea rcx, [rsp + 0x50]
call fcn.180003554
mov ebx, eax
test ebx, ebx
jne 0x180002ff4
cmp dword [rsp + 0xa4], 0xc8
jne 0x180002fef
mov ecx, dword [rsp + 0xa8]
test ecx, ecx
je 0x180002fe8
test rbp, rbp
je 0x180002ff4
mov rax, qword [rsp + 0x60]
and qword [rsp + 0x60], 0
test rsi, rsi
mov qword [rbp], rax
je 0x180002ff4
mov dword [rsi], ecx
jmp 0x180002ff4
mov ebx, 0x10d2
jmp 0x180002ff4
mov ebx, 0xe8
lea rcx, [rsp + 0x50]
call fcn.180003184
cmp ebx, 0x2f19
jne 0x180003020
mov rcx, qword [0x18000d398]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x180002d21
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret