Function at 0x6cb25b60
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x64], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test byte [0x6cb2c14c], 8
jne 0x6cb25e75
mov dword [esp], ebx
call sym._grab_object
mov ebx, eax
test eax, eax
je 0x6cb25f50
cmp dword [eax], 1
jne 0x6cb25ed4
mov edi, dword [ebp + 0x14]
test esi, esi
sete dl
test edi, edi
sete al
or dl, al
jne 0x6cb25e50
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x6cb25e50
mov eax, dword [esi]
mov edx, eax
and edx, 3
je 0x6cb25e50
test al, 1
jne 0x6cb25f00
cmp edx, 3
je 0x6cb25e50
test al, 2
je 0x6cb25f70
mov edx, dword [esi + 8]
xor eax, eax
mov ecx, 0xe
lea edi, [ebp - 0x48]
mov dword [ebp - 0x5c], 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
call sym.winhttp.dll_WinHttpCrackUrl
sub esp, 0x10
mov edi, eax
test eax, eax
je 0x6cb25f33
mov eax, dword [ebp - 0x38]
lea esi, [eax + eax + 2]
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6cb25e30
mov eax, dword [ebp - 0x38]
mov dword [esp], esi
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call sym._memmove
mov eax, dword [ebp - 0x38]
xor edx, edx
mov word [esi + eax*2], dx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call sym.winhttp.dll_WinHttpOpen
sub esp, 0x14
mov edi, eax
test eax, eax
je 0x6cb25f80
movzx eax, word [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.winhttp.dll_WinHttpConnect
sub esp, 0x10
mov ecx, eax
mov dword [ebp - 0x70], eax
test eax, eax
je 0x6cb25f80
xor eax, eax
cmp dword [ebp - 0x40], 2
mov dword [esp + 0x14], 0x6cb2c140
sete al
mov dword [esp + 0x10], 0
shl eax, 0x17
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], ecx
call sym.winhttp.dll_WinHttpOpenRequest
sub esp, 0x1c
mov edx, eax
test eax, eax
je 0x6cb25de1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x6c], eax
call sym.winhttp.dll_WinHttpSendRequest
mov edx, dword [ebp - 0x6c]
sub esp, 0x1c
test eax, eax
je 0x6cb25de1
mov dword [esp], edx
mov dword [esp + 4], 0
call sym.winhttp.dll_WinHttpReceiveResponse
mov edx, dword [ebp - 0x6c]
sub esp, 8
test eax, eax
je 0x6cb25de1
lea eax, [ebp - 0x5c]
mov dword [esp], edx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x20000013
call sym.winhttp.dll_WinHttpQueryHeaders
mov edx, dword [ebp - 0x6c]
sub esp, 0x18
test eax, eax
je 0x6cb25de1
cmp dword [ebp - 0x60], 0xc8
je 0x6cb25f8e
mov dword [esp], edx
call sym.winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp - 0x70]
sub esp, 4
mov dword [esp], eax
call sym.winhttp.dll_WinHttpCloseHandle
sub esp, 4
mov dword [esp], edi
call sym.winhttp.dll_WinHttpCloseHandle
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], 0x2f87
call sym._SetLastError_4
sub esp, 4
mov eax, dword [ebp - 0x64]
xor edi, edi
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov dword [esp], ebx
call sym._release_object
jmp 0x6cb25e69
mov dword [esp], ebx
xor edi, edi
call sym._release_object
mov dword [esp], 0x57
call sym._SetLastError_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], str._p___s___p___p_n
mov dword [esp + 0x10], 0x76e
mov dword [esp + 0xc], str.WinHttpGetProxyForUrl
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x6cb25b86
mov dword [esp], eax
xor edi, edi
call sym._release_object
mov dword [esp], 0x2ef2
call sym._SetLastError_4
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [esi + 4]
cmp edx, 3
je 0x6cb25e50
test eax, eax
je 0x6cb25e50
lea edx, [ebp - 0x64]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.winhttp.dll_WinHttpDetectAutoProxyConfigUrl
sub esp, 8
mov edi, eax
test eax, eax
je 0x6cb25f33
mov eax, dword [esi]
jmp 0x6cb25bdf
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov dword [esp], ebx
call sym._release_object
jmp 0x6cb25e69
mov dword [esp], 6
xor edi, edi
call sym._SetLastError_4
sub esp, 4
jmp 0x6cb25e69
mov edx, dword [ebp - 0x64]
jmp 0x6cb25bea
xor edx, edx
mov dword [ebp - 0x70], 0
jmp 0x6cb25de1
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x5c], 0x1000
call sym._GetProcessHeap_0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
mov edx, dword [ebp - 0x74]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x6c], eax
je 0x6cb25de1
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x74], ebx
mov ebx, edx
mov dword [ebp - 0x78], esi
mov esi, eax
mov dword [ebp - 0x7c], edi
mov edi, ecx
lea esi, [esi]
lea eax, [ebp - 0x58]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], ebx
add eax, esi
mov dword [esp + 4], eax
call sym.winhttp.dll_WinHttpReadData
sub esp, 0x10
test eax, eax
je 0x6cb26050
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x6cb26050
add esi, eax
sub edi, eax
jne 0x6cb25fe0
mov edi, dword [ebp - 0x5c]
lea edx, [edi + edi]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x80], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call sym._HeapReAlloc_16
sub esp, 0x10
test eax, eax
je 0x6cb26050
mov dword [ebp - 0x6c], eax
jmp 0x6cb25fe0
mov edx, ebx
mov edi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [esp], edx
mov esi, dword [ebp - 0x78]
call sym.winhttp.dll_WinHttpCloseHandle
mov eax, dword [ebp - 0x70]
sub esp, 4
mov dword [esp], eax
call sym.winhttp.dll_WinHttpCloseHandle
sub esp, 4
mov dword [esp], edi
call sym.winhttp.dll_WinHttpCloseHandle
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], 0xc
sub esp, 0xc
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x1c], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._WideCharToMultiByte_32
sub esp, 0x20
mov edi, eax
call sym._GetProcessHeap_0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x6cb2627c
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._WideCharToMultiByte_32
lea eax, [ebp - 0x58]
sub esp, 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._InternetInitializeAutoProxyDll_20
sub esp, 0x14
test eax, eax
je 0x6cb26260
xor eax, eax
mov ecx, 0xe
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x3c
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x38], 0xffffffff
call sym.winhttp.dll_WinHttpCrackUrl
sub esp, 0x10
test eax, eax
jne 0x6cb262a0
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._InternetDeInitializeAutoProxyDll_8
sub esp, 8
mov edi, eax
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
mov eax, dword [ebp - 0x64]
sub esp, 0xc
mov dword [esp], eax
call sym._GlobalFree_4
sub esp, 4
mov dword [esp], ebx
call sym._release_object
test edi, edi
je 0x6cb25e69
mov dword [esp], 0
call sym._SetLastError_4
sub esp, 4
jmp 0x6cb25e69
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb25e30
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x70], 0
test edi, edi
je 0x6cb2636d
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x7c], edx
call sym._WideCharToMultiByte_32
sub esp, 0x20
mov dword [ebp - 0x78], eax
add eax, 1
mov dword [ebp - 0x74], eax
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x74]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapAlloc_12
sub esp, 0xc
mov dword [ebp - 0x70], eax
test eax, eax
je 0x6cb2636d
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x7c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._WideCharToMultiByte_32
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x78]
sub esp, 0x20
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x70]
mov edi, dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], eax
call edi
mov dword [esp], esi
mov dword [ebp - 0x74], eax
call edi
lea edx, [ebp - 0x5c]
mov ecx, dword [ebp - 0x70]
mov dword [esp], esi
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x60]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x74]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call sym._InternetGetProxyInfo_24
sub esp, 0x18
test eax, eax
jne 0x6cb263d6
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb261da
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x60]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [eax + 8], 0
test byte [0x6cb2c14c], 8
je 0x6cb26403
jmp 0x6cb2643c
add edx, 1
cmp byte [edx], 0x20
je 0x6cb26400
mov dword [esp], edx
mov dword [ebp - 0x74], edx
call edi
mov edx, dword [ebp - 0x74]
cmp eax, 4
ja 0x6cb2648f
mov edi, dword [ebp - 0x60]
call sym._GetProcessHeap_0
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x6cb263b2
mov dword [esp], edx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x74], edx
call sym._wine_dbgstr_an
mov dword [esp + 0x14], 0x6cb302b5
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x6da
mov dword [esp + 0xc], str.parse_script_result
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 3
call sym._ros_dbg_log
mov edx, dword [ebp - 0x74]
jmp 0x6cb26403
mov dword [esp + 8], 5
mov dword [esp + 4], str.PROXY
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll__strnicmp]
test eax, eax
jne 0x6cb26418
mov edx, dword [ebp - 0x74]
movzx eax, byte [edx + 5]
lea edi, [edx + 5]
cmp al, 0x20
jne 0x6cb264c8
add edi, 1
movzx eax, byte [edi]
cmp al, 0x20
je 0x6cb264be
test al, al
je 0x6cb26418
cmp al, 0x3b
je 0x6cb26418
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._MultiByteToWideChar_24
sub esp, 0x18
mov dword [ebp - 0x74], eax
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x74]
mov dword [esp + 4], 0
mov dword [esp], eax
lea edx, [ecx + ecx]
mov dword [esp + 8], edx
call sym._HeapAlloc_12
sub esp, 0xc
test eax, eax
je 0x6cb265b7
mov ecx, dword [ebp - 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x74], eax
call sym._MultiByteToWideChar_24
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x74]
sub esp, 0x18
mov dword [eax + 4], edx
mov dword [eax], 3
movzx eax, word [edx]
test ax, ax
je 0x6cb26418
cmp ax, 0x3b
je 0x6cb265ad
cmp ax, 0x20
jne 0x6cb26598
jmp 0x6cb265ad
cmp ax, 0x3b
je 0x6cb265ad
add edx, 2
movzx eax, word [edx]
test ax, ax
je 0x6cb26418
cmp ax, 0x20
jne 0x6cb26592
mov word [edx], 0
jmp 0x6cb26418
mov eax, dword [ebp + 0x14]
mov dword [eax + 4], 0
jmp 0x6cb26418