Function at 0x855b80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa99e68
mov eax, dword fs:[0]
push eax
sub esp, 0xc54
mov eax, dword [0xb196ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea edi, [ebx + 0x47c]
push 0xaa9700
mov edx, edi
mov dword [ebp - 0xc60], ebx
mov byte [ebp - 0xc51], 0
mov dword [ebp - 4], 0
call fcn.00853e40
add esp, 4
cmp dword [0xb53f4c], 0
je 0x855bf5
push edi
push 0xaa8700
push 0
call fcn.0096a780
add esp, 0xc
push edi
lea eax, [ebx + 0x350]
push 0xaa8700
push eax
call fcn.0096a780
mov ecx, dword [ebx + 0x46c]
add esp, 0xc
push 0
lea esi, [ebx + 0x470]
push esi
push 0
push 0
push 0x16
push ecx
mov dword [esi], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x855d39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc58], eax
cmp eax, 0x7a
je 0x855d39
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x22e]
push eax
mov word [ebp - 0x230], dx
call fcn.00a7ffb0
add esp, 0xc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [ebp - 0xc4e]
push edx
mov word [ebp - 0xc50], cx
call fcn.00a7ffb0
mov ecx, dword [ebp - 0xc58]
add esp, 0xc
lea ebx, [ebp - 0xc50]
call fcn.00853fe0
mov eax, ebx
push eax
push edi
push str._s:_Error___s__encountered.
lea edx, [ebp - 0x230]
call fcn.00853e40
add esp, 0xc
xor ecx, ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x855cd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
lea esi, [ebp - 0x30]
call fcn.0085d720
mov esi, dword [ebp - 0xc60]
mov eax, 1
mov byte [ebp - 4], al
push 0xffffffffffffffff
mov dword [esi + 0x22c], eax
push 0
lea ecx, [esi + 0x230]
lea eax, [ebp - 0x30]
call fcn.0085d4c0
cmp dword [ebp - 0x18], 8
mov edx, dword [ebp - 0xc58]
mov dword [esi + 0x228], edx
jb 0x855d32
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00a7a9b9
add esp, 4
xor al, al
jmp 0x855f4b
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a77370
add esp, 4
mov dword [ebp - 0xc5c], eax
test eax, eax
je 0x855f45
push 0
push esi
push eax
mov eax, dword [ebx + 0x46c]
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x855ea4
mov edx, dword [ebp - 0xc5c]
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x855d90
sub eax, esi
sar eax, 1
push eax
lea esi, [ebx + 0x8a0]
mov eax, edx
call fcn.0085d720
cmp dword [esi + 0x18], 8
mov byte [ebp - 0xc51], 1
mov dword [ebp - 0xc58], 0
jb 0x855dc9
mov esi, dword [esi + 4]
jmp 0x855dcc
add esi, 4
push esi
lea ebx, [ebp - 0xc58]
call fcn.00970520
mov edi, dword [ebp - 0xc58]
add esp, 4
test edi, edi
je 0x855f32
push 0x20
push edi
call fcn.00a7a2c0
mov esi, eax
add esp, 8
test esi, esi
je 0x855e5f
xor ecx, ecx
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov word [ebp - 0x17], cx
mov byte [ebp - 0x15], cl
inc esi
cmp ecx, 4
jge 0x855e2d
mov dl, byte [ecx + esi]
cmp dl, 0x20
je 0x855e2d
mov al, dl
sub al, 0x30
cmp al, 9
ja 0x855e2d
mov byte [ebp + ecx - 0x24], dl
inc ecx
jmp 0x855e11
lea ecx, [ebp - 0x24]
push ecx
call fcn.00a79090
mov edx, dword [ebp - 0xc60]
add esp, 4
cmp dword [0xb53f4c], 0
mov dword [edx + 0x18], eax
je 0x855e96
push eax
lea eax, [ebp - 0x24]
push eax
push str.RC:__s___u_
push 0
call fcn.0096a780
add esp, 0x10
cmp dword [0xb53f4c], 0
je 0x855e96
push str._Response_Header_Start_
push 0
call fcn.0096a780
add esp, 8
push edi
push 0xaa1544
push 0
call fcn.0096a780
add esp, 0xc
push str._Response_Header_End_
push 0
call fcn.0096a780
add esp, 8
push edi
call fcn.00a78fec
add esp, 4
jmp 0x855f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x42e]
push edx
mov esi, eax
mov word [ebp - 0x430], cx
call fcn.00a7ffb0
add esp, 0xc
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x83e]
push ecx
mov word [ebp - 0x840], ax
call fcn.00a7ffb0
add esp, 0xc
mov ecx, esi
lea ebx, [ebp - 0x840]
call fcn.00853fe0
mov edx, ebx
push edx
push edi
push str._s:_Error___s__encountered.
lea edx, [ebp - 0x430]
call fcn.00853e40
add esp, 0xc
cmp dword [0xb53f4c], 0
je 0x855f2b
lea eax, [ebp - 0x430]
push eax
push 0xaa8700
push 0
call fcn.0096a780
add esp, 0xc
mov byte [ebp - 0xc51], 0
mov eax, dword [ebp - 0xc5c]
test eax, eax
je 0x855f45
push eax
call fcn.00a7a976
add esp, 4
mov al, byte [ebp - 0xc51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret