Function at 0x4155b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x18], esi
cmp dword [ebx + 0x14], esi
push edi
jne 0x4155db
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], esi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x59b698]
mov edi, dword [0x59b694]
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
jne 0x415628
push 1
call fcn.0044ce70
mov edi, eax
add esp, 4
cmp edi, esi
je 0x41561c
call fcn.00429ab0
add dword [0x59b58c], 1
jmp 0x41561e
xor edi, edi
lea ecx, [esp + 0x10]
push ecx
call fcn.00418860
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
jne 0x41565c
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
cmp eax, 0x193
je 0x415653
mov ecx, dword [ebx + 0x68]
cmp dword [ecx + 4], 4
jl 0x41565c
lea edx, [esp + 0x28]
mov dword [ebp + 8], edx
mov esi, edx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x20]
mov ecx, dword [ebx + 0x14]
push esi
fstp qword [ebx + 0xd0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp eax, 0xf4242
mov dword [esp + 0x20], eax
je 0x4157d8
cmp byte [ebx + 0xb0], 0
je 0x4157d8
cmp esi, edi
je 0x4157d8
cmp dword [esi], edi
je 0x4157d8
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
push str.Content_encoding
mov eax, 0x10
lea edi, [esp + 0x18]
call fcn.0044a090
mov edx, dword [ebx]
mov edx, dword [edx + 0x78]
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
push ecx
mov ecx, ebx
call edx
call fcn.00401070
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4157cf
lea edi, [eax + 4]
mov edx, str.gzip
cmp edi, edx
je 0x41574c
test edi, edi
je 0x4157cf
jmp 0x415700
mov cl, byte [edi]
test cl, cl
je 0x41573a
mov al, byte [edx]
cmp al, 0x41
jl 0x415712
cmp al, 0x5a
jg 0x415712
add al, 0x20
cmp cl, 0x41
jl 0x41571f
cmp cl, 0x5a
jg 0x41571f
add cl, 0x20
cmp al, cl
jl 0x4157cf
jg 0x4157cf
add edx, 1
add edi, 1
cmp byte [edx], 0
jne 0x415700
jmp 0x415743
cmp byte [edx], 0
jne 0x4157cf
cmp byte [edi], 0
jne 0x4157cf
push str.GZip_detected__inflating
push 4
call fcn.0041e750
add esp, 8
push esi
call fcn.004185d0
test eax, eax
jne 0x41576f
mov eax, dword [esi]
mov dword [ebx + 0xc4], eax
jmp 0x4157cf
xor esi, esi
push str.Failed_to_inflate_GZip_data
lea eax, [esi + 0x1b]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0044a090
mov eax, dword [ebx + 0x68]
cmp dword [eax + 4], 1
jl 0x41579e
mov ecx, dword [ebx + 0xbc]
push ecx
push eax
mov eax, edi
call fcn.0041f390
lea edi, [esp + 0x14]
call fcn.00401070
push str.Failed_to_inflate_GZIP_data
mov eax, 0x1b
lea edi, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.0044a090
mov esi, edi
mov eax, ebx
call fcn.004134d0
call fcn.00401070
mov esi, dword [ebp + 8]
lea edi, [esp + 0x18]
call fcn.00401070
mov edx, dword [ebx + 0x68]
cmp dword [edx + 4], 4
jl 0x415938
cmp dword [esi], 0
mov byte [esp + 0xf], 0
je 0x415819
mov eax, dword [ebx]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x20], 1
call edx
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, eax
call fcn.0041f6d0
test al, al
mov byte [esp + 0xe], 1
jne 0x41581e
mov byte [esp + 0xe], 0
test byte [esp + 0x1c], 1
je 0x41582e
lea edi, [esp + 0x18]
call fcn.00401070
cmp byte [esp + 0xe], 0
je 0x4158f8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
push str.Content_type
mov eax, 0xc
lea edi, [esp + 0x1c]
call fcn.0044a090
mov edx, dword [ebx]
mov edx, dword [edx + 0x78]
push 0
lea eax, [esp + 0x20]
push eax
mov ecx, edi
push ecx
mov ecx, ebx
call edx
call fcn.00401070
push 0
mov ecx, str.image
lea eax, [esp + 0x20]
call fcn.0044ab30
test al, al
jne 0x4158e8
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0044a090
push str.Received_response:_n
mov eax, 0x13
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], 0
call fcn.0044a090
mov eax, dword [ebx + 0x68]
cmp dword [eax + 4], 4
jl 0x4158d1
mov edx, dword [ebx + 0xbc]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, edi
call fcn.0041e660
lea edi, [esp + 0x18]
call fcn.00401070
lea edi, [esp + 0x14]
mov byte [esp + 0xf], 1
call fcn.00401070
lea edi, [esp + 0x1c]
call fcn.00401070
cmp byte [esp + 0xf], 0
jne 0x415938
mov eax, dword [esi]
push eax
push str.Received_response___d_bytes_
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.00401180
mov eax, dword [ebx + 0x68]
add esp, 8
cmp dword [eax + 4], 4
jl 0x41592c
mov ecx, dword [ebx + 0xbc]
push ecx
push eax
mov eax, esi
call fcn.0041f390
lea edi, [esp + 0x1c]
call fcn.00401070
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x64], 0
je 0x41595d
mov edx, dword [ebx]
mov eax, dword [edx + 0x88]
mov ecx, ebx
call eax
cmp eax, 0x193
jne 0x41595d
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
push esi
push ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x88]
mov ecx, ebx
call eax
xor esi, esi
cmp dword [ebx + 0x60], esi
mov edi, eax
mov dword [esp + 0x1c], edi
je 0x41597c
push ebx
call fcn.004165c0
mov ecx, dword [ebx + 0x68]
push esi
push ebx
push ecx
mov dword [ebx + 0x10], esi
mov dword [ebx + 0xc], esi
call fcn.0041e1d0
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x415a1e
push edi
push eax
mov dword [esp + 0x24], esi
push str.HttpStreamBase::EndRequest_Error__err___d__statusCode___d
lea esi, [esp + 0x28]
call fcn.00401180
add esp, 0xc
mov eax, ebx
ret
call fcn.004134d0
mov edi, esi
call fcn.00401070
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x4159d7
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x4159d7
push eax
call fcn.0044d390
add esp, 4
mov esi, dword [esp + 0x10]
cmp esi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
je 0x415b3e
sub dword [0x59b58c], 1
jne 0x415a07
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call fcn.0044d390
add esp, 4
mov eax, 0xf4629
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [edi - 0xc8]
cmp edx, 0xc7
ja 0x415a49
lea esi, [esp + 0x28]
call fcn.00469930
lea eax, [esp + 0x10]
call fcn.00418830
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], esi
call edx
mov eax, dword [eax]
cmp eax, esi
je 0x415a75
lea ecx, [eax + 4]
cmp ecx, esi
je 0x415a75
cmp eax, esi
je 0x415a71
add eax, 4
jmp 0x415a7a
xor eax, eax
jmp 0x415a7a
mov eax, 0x543bb1
push eax
push edi
push str.HTTP_Error__d____s
lea esi, [esp + 0x20]
call fcn.00401180
add esp, 0xc
lea edi, [esp + 0x20]
call fcn.00401070
mov eax, ebx
call fcn.004134d0
mov eax, dword [esp + 0x1c]
cmp eax, 0x1f4
mov edi, esi
jb 0x415acf
call fcn.00401070
lea esi, [esp + 0x28]
call fcn.00469930
lea eax, [esp + 0x10]
call fcn.00418830
mov eax, 0xf462c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x194
jne 0x415afb
call fcn.00401070
lea esi, [esp + 0x28]
call fcn.00469930
lea eax, [esp + 0x10]
call fcn.00418830
mov eax, 0xf462d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x193
jne 0x415b27
call fcn.00401070
lea esi, [esp + 0x28]
call fcn.00469930
lea eax, [esp + 0x10]
call fcn.00418830
mov eax, 0xf462e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401070
lea esi, [esp + 0x28]
call fcn.00469930
lea eax, [esp + 0x10]
call fcn.00418830
pop edi
pop esi
mov eax, 0xf4629
pop ebx
mov esp, ebp
pop ebp
ret 4