Function at 0x4091b0
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512083
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x16d8
call fcn.0050fde0
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x1688], eax
cmp dword [esi + 0x14], 0x10
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1624], eax
mov eax, esi
mov dword [ebp - 0x16bc], esi
mov dword [esi + 0x10], 0
jb 0x409224
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x218]
push 0x200
push 0
push eax
mov dword [ebp - 0x163c], 0x200
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x163c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0xf
mov byte [ebp - 0x16a0], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409295
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x16a0]
call fcn.0040bd90
lea eax, [ebp - 0x16a0]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1680]
push eax
call fcn.004b67c0
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x168c]
cmp edx, 0x10
jb 0x40930e
mov ecx, dword [ebp - 0x16a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409304
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409304
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0050f85c
add esp, 8
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0xf
mov byte [ebp - 0x16a0], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1680]
cmp dword [ebp - 0x166c], 8
lea ecx, [ebp - 0x1630]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x1680]
sub esp, 0x10
movlpd qword [ebp - 0x1630], xmm0
push eax
call fcn.0045d7d0
lea eax, [ebp - 0x161c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1620]
mov dword [ebp - 0x1620], 0
push eax
push 0x49
push 0
mov dword [ebp - 0x161c], 4
call fcn.00467540
mov ecx, eax
call fcn.00467e20
test eax, eax
je 0x40939e
cmp dword [ebp - 0x1620], 0x40
jae 0x4093c0
push ecx
lea eax, [ebp - 0x1628]
mov dword [ebp - 0x1628], 0x40
push eax
push 0x49
push 0
call fcn.00467540
mov ecx, eax
call fcn.00467f60
lea eax, [ebp - 0x161c]
mov dword [ebp - 0x1620], 0
push eax
lea eax, [ebp - 0x1620]
mov dword [ebp - 0x161c], 4
push eax
push 0x4a
push 0
call fcn.00467540
mov ecx, eax
call fcn.00467e20
test eax, eax
je 0x4093ff
cmp dword [ebp - 0x1620], 0x40
jae 0x409421
push ecx
lea eax, [ebp - 0x1628]
mov dword [ebp - 0x1628], 0x40
push eax
push 0x4a
push 0
call fcn.00467540
mov ecx, eax
call fcn.00467f60
xorps xmm0, xmm0
lea ecx, [ebp - 0x1668]
movups xmmword [ebp - 0x1668], xmm0
movups xmmword [ebp - 0x1658], xmm0
movq qword [ebp - 0x1648], xmm0
call fcn.0045d660
cmp byte [ebx + 0x14], 0
mov byte [ebp - 4], 8
je 0x409550
cmp dword [edi + 0x14], 8
jb 0x40945b
mov edi, dword [edi]
mov ecx, edi
mov dword [ebp - 0x16a8], 0
xor eax, eax
mov dword [ebp - 0x16a4], 0
mov dword [ebp - 0x16a8], 0
mov dword [ebp - 0x16a4], 7
mov word [ebp - 0x16b8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409491
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x16b8]
call fcn.004033d0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x16a0]
push 0x40
xor eax, eax
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0
push str.Content_Type:application_json_r_nAccept_Encoding:gzip__deflate__br
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 7
mov word [ebp - 0x16a0], ax
call fcn.004033d0
push ecx
lea eax, [ebp - 0x16b8]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x16a0]
push eax
push dword [ebp - 0x1624]
lea ecx, [ebp - 0x1668]
sub esp, 8
push dword [ebp - 0x1688]
push dword [ebp - 0x162c]
call fcn.0045d7a0
mov byte [ebp - 0x1681], al
lea ecx, [ebp - 0x16a0]
mov byte [ebp - 4], 0xb
call fcn.00403370
lea ecx, [ebp - 0x16b8]
mov byte [ebp - 4], 0xf
call fcn.00403370
jmp 0x4096eb
cmp dword [edi + 0x14], 8
jb 0x409558
mov edi, dword [edi]
mov ecx, edi
mov dword [ebp - 0x16c8], 0
xor eax, eax
mov dword [ebp - 0x16c4], 0
mov dword [ebp - 0x16c8], 0
mov dword [ebp - 0x16c4], 7
mov word [ebp - 0x16d8], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409590
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x16d8]
call fcn.004033d0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x16b8]
push 0x2e
xor eax, eax
mov dword [ebp - 0x16a8], 0
mov dword [ebp - 0x16a4], 0
push str.Content_Type:application_x_www_form_urlencoded
mov dword [ebp - 0x16a8], 0
mov dword [ebp - 0x16a4], 7
mov word [ebp - 0x16b8], ax
call fcn.004033d0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x16a0]
push 0
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0
push 0x535498
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0xf
mov byte [ebp - 0x16a0], 0
call fcn.0040bd90
push ecx
lea eax, [ebp - 0x16d8]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x16b8]
push eax
lea eax, [ebp - 0x16a0]
push eax
sub esp, 8
lea ecx, [ebp - 0x1668]
push dword [ebp - 0x1688]
push dword [ebp - 0x162c]
call fcn.0045d7a0
mov byte [ebp - 0x1681], al
mov byte [ebp - 4], 0x16
mov edx, dword [ebp - 0x168c]
cmp edx, 0x10
jb 0x4096b2
mov ecx, dword [ebp - 0x16a0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4096a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4096a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0050f85c
add esp, 8
mov dword [ebp - 0x1690], 0
mov dword [ebp - 0x168c], 0xf
mov byte [ebp - 0x16a0], 0
lea ecx, [ebp - 0x16b8]
mov byte [ebp - 4], 0x1a
call fcn.00403370
lea ecx, [ebp - 0x16d8]
mov byte [ebp - 4], 0x1e
call fcn.00403370
cmp byte [ebp - 0x1681], 0
mov byte [ebp - 4], 8
jne 0x409733
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1668]
mov byte [ebp - 4], 7
call fcn.0045d750
lea ecx, [ebp - 0x1630]
mov byte [ebp - 4], 2
call fcn.0045d8d0
lea ecx, [ebp - 0x1680]
mov dword [ebp - 4], 0x22
call fcn.00403370
jmp 0x4099b2
mov eax, dword [ebp - 0x1664]
mov dword [ebp - 0x1634], 0
mov dword [ebp - 0x1624], 4
test eax, eax
je 0x409982
push 0
lea ecx, [ebp - 0x1624]
push ecx
lea ecx, [ebp - 0x1634]
push ecx
push 0x20000013
push eax
call fcn.00467540
mov ecx, eax
call fcn.00467890
test eax, eax
je 0x409982
cmp dword [ebp - 0x1634], 0xc8
jne 0x409982
push ecx
lea eax, [ebp - 0x1638]
mov dword [ebp - 0x1638], 0
push eax
push 5
lea ecx, [ebp - 0x1668]
call fcn.0045da10
or edi, 0xffffffff
mov dword [ebp - 0x1688], 0xffffffff
test al, al
je 0x4097cf
mov edi, dword [ebp - 0x1638]
mov dword [ebp - 0x1688], 0
push 0x1400
lea eax, [ebp - 0x1618]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1688]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x16e0], edi
mov dword [ebp - 0x16dc], eax
movlpd qword [ebp - 0x16d8], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x16e8], eax
lea ecx, [ebp - 0x1668]
mov dword [ebp - 0x16e4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x161c]
mov dword [ebp - 0x161c], 0
push eax
lea eax, [ebp - 0x16e8]
push eax
push 0x13ff
lea eax, [ebp - 0x1618]
push eax
movups xmmword [ebp - 0x16d0], xmm0
call fcn.0045f190
mov edi, eax
test edi, edi
je 0x40990a
nop word [eax + eax]
lea ecx, [edi - 1]
cmp ecx, 0x13fe
ja 0x40993e
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov byte [ebp + edi - 0x1618], 0
cmp edi, eax
ja 0x4098b4
lea eax, [ecx + edi]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x409894
mov eax, dword [esi]
lea esi, [eax + ecx]
push edi
lea eax, [ebp - 0x1618]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + edi], 0
add esp, 0xc
mov esi, dword [ebp - 0x16bc]
jmp 0x4098d1
push edi
lea eax, [ebp - 0x1618]
mov byte [ebp - 0x1624], 0
push eax
push dword [ebp - 0x1624]
mov ecx, esi
push edi
call fcn.00408f50
lea eax, [ebp - 0x161c]
mov dword [ebp - 0x161c], 0
push eax
lea eax, [ebp - 0x16e8]
push eax
push 0x13ff
lea eax, [ebp - 0x1618]
push eax
lea ecx, [ebp - 0x1668]
call fcn.0045f190
mov edi, eax
test edi, edi
jne 0x409860
lea ecx, [ebp - 0x1668]
mov byte [ebp - 4], 7
call fcn.0045d750
lea ecx, [ebp - 0x1630]
mov byte [ebp - 4], 2
call fcn.0045d8d0
lea ecx, [ebp - 0x1680]
mov dword [ebp - 4], 0x2e
call fcn.00403370
mov al, 1
jmp 0x4099b4
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40994d
mov esi, dword [esi]
mov byte [esi], 0
lea ecx, [ebp - 0x1668]
mov byte [ebp - 4], 7
call fcn.0045d750
lea ecx, [ebp - 0x1630]
mov byte [ebp - 4], 2
call fcn.0045d8d0
lea ecx, [ebp - 0x1680]
mov dword [ebp - 4], 0x2a
call fcn.00403370
jmp 0x4099b2
lea ecx, [ebp - 0x1668]
mov byte [ebp - 4], 7
call fcn.0045d750
lea ecx, [ebp - 0x1630]
mov byte [ebp - 4], 2
call fcn.0045d8d0
lea ecx, [ebp - 0x1680]
mov dword [ebp - 4], 0x26
call fcn.00403370
xor al, al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x14