Function at 0x10ed520
Capabilities:
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1140fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x115f604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
mov ecx, 0x1161d94
mov dword [ebp - 0x2c], 3
call edx
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [0x1161d94]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x1161d94
mov dword [ebp - 4], edi
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.011293bc
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.01127f00
test al, al
je 0x10ed5fa
push 0x1040608
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.010decc0
mov ecx, dword [eax]
push ecx
push 0x10405e0
push 0x1040568
push 3
mov byte [ebp - 4], 2
call fcn.01128b70
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10ed5fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], edi
jne 0x10ed65c
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10ed61f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10ed645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x8000ffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.01127f00
test al, al
je 0x10ed681
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 8]
push edx
push esi
push 0x1040510
push 0x1040498
push 3
call fcn.01128b70
add esp, 0x14
mov eax, dword [esi + 0x20]
add eax, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.010ecfc0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0109c0b0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10ed6c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.01127f00
test al, al
je 0x10ed6de
push 0x1040418
push 0x10403a0
push 3
call fcn.01128b70
add esp, 0xc
mov eax, dword [esi + 0x18]
cmp eax, edi
mov ebx, 4
jne 0x10ed72f
push 0x20000
call fcn.01083687
add esp, 4
cmp eax, edi
mov dword [esi + 0x18], eax
jne 0x10ed729
mov ebx, 0x8007000e
call fcn.01127f00
test al, al
je 0x10ed71f
push 0x1040348
push 0x10402d0
push edi
call fcn.01128b70
add esp, 0xc
push 0x1040258
jmp 0x10edb0d
mov dword [esi + 0x1c], edi
mov byte [eax], 0
mov ecx, dword [esi + 8]
push edi
push ecx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
jne 0x10ed7a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x28], eax
mov ebx, eax
jle 0x10ed75c
and ebx, 0xffff
or ebx, 0x80070000
call fcn.01127f00
test al, al
je 0x10ed779
push ebx
push 0x1040210
push 0x1040198
push edi
call fcn.01128b70
add esp, 0x10
cmp dword [ebp - 0x28], 0x2f8f
mov ebx, 0x80048051
jne 0x10edbb6
mov edx, dword [esi + 0x20]
mov eax, dword [edx + 8]
cmp eax, edi
je 0x10edbb6
mov dword [eax + 0x70], 0x800488eb
jmp 0x10edbb6
mov edx, dword [esi + 8]
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
push 0x20000013
push edx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, edi
je 0x10edae4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.01127f00
test al, al
je 0x10ed7f3
mov eax, dword [ebp - 0x18]
push eax
push 0x1040158
push 0x10400e0
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x18]
sub eax, 0xc8
je 0x10ed8fb
sub eax, 0xc9
je 0x10ed899
sub eax, 6
je 0x10ed83a
call fcn.01127f00
test al, al
je 0x10ed8fb
mov ecx, dword [ebp - 0x18]
push ecx
push 0x10400a0
push 0x1040028
push edi
call fcn.01128b70
add esp, 0x10
jmp 0x10ed8fb
call fcn.01127f00
test al, al
je 0x10ed85a
mov edx, dword [ebp - 0x18]
push edx
push 0x103ffc8
push 0x103ff50
push edi
call fcn.01128b70
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x10ed8fb
call fcn.01127f00
test al, al
je 0x10ed8fb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
push edx
push eax
push 0x103fef0
push 0x103fe78
jmp 0x10ed8f2
call fcn.01127f00
test al, al
je 0x10ed8b9
mov ecx, dword [ebp - 0x18]
push ecx
push 0x103fe18
push 0x103fda0
push edi
call fcn.01128b70
add esp, 0x10
lea edx, [ebp - 0x20]
push edx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
je 0x10ed8fb
call fcn.01127f00
test al, al
je 0x10ed8fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push eax
push ecx
push edx
push 0x103fef0
push 0x103fd28
push edi
call fcn.01128b70
add esp, 0x18
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
cmp eax, edi
je 0x10ed99f
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx]
cmp ecx, 0x20000
jae 0x10ed9cd
mov ecx, dword [esi + 0x18]
lea ebx, [ebp - 0x1c]
push ebx
push edx
mov edx, dword [esi + 8]
add eax, ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
cmp eax, edi
je 0x10ed9ff
mov eax, dword [ebp - 0x1c]
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov byte [eax + ecx], 0
cmp dword [ebp - 0x1c], edi
je 0x10eda2d
call fcn.01127f00
test al, al
je 0x10ed983
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x103fcd8
push 0x103fc60
push 3
call fcn.01128b70
add esp, 0x10
mov eax, dword [esi + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
cmp eax, edi
jne 0x10ed917
call fcn.01071a70
mov ebx, eax
call fcn.01127f00
test al, al
je 0x10ed9c3
push ebx
push 0x103fc10
push 0x103fb98
push edi
call fcn.01128b70
add esp, 0x10
push 0x103fb20
jmp 0x10edb0d
mov ebx, 0x8004888a
call fcn.01127f00
test al, al
je 0x10ed9f5
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x14]
push ecx
push 0x103faa0
push 0x103fa28
push edi
call fcn.01128b70
add esp, 0x10
push 0x103f9b0
jmp 0x10edb0d
call fcn.01071a70
mov ebx, eax
call fcn.01127f00
test al, al
je 0x10eda23
push ebx
push 0x103f978
push 0x103f900
push edi
call fcn.01128b70
add esp, 0x10
push 0x103f888
jmp 0x10edb0d
call fcn.01127f00
test al, al
je 0x10eda4d
mov edx, dword [esi + 0x1c]
push edx
push 0x103f828
push 0x103f7b0
push edi
call fcn.01128b70
add esp, 0x10
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x10edabc
cmp byte [eax], 0
je 0x10edabc
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x2c], 5
mov eax, dword [eax + 8]
mov dword [eax + 0x70], 0x80048820
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea ebx, [ebp - 0x2c]
push ebx
mov ebx, dword [esi + 0x1c]
push ebx
push eax
mov eax, dword [edx + 0x10]
call eax
mov ebx, eax
cmp ebx, edi
jge 0x10edaad
call fcn.01127f00
test al, al
je 0x10edaa6
push ebx
push 0x103f768
push 0x103f6f0
push edi
call fcn.01128b70
add esp, 0x10
push 0x103f678
jmp 0x10edb0d
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
jmp 0x10edbb6
call fcn.01127f00
test al, al
je 0x10edad8
push 0x103f628
push 0x103f5b0
push edi
call fcn.01128b70
add esp, 0xc
mov ebx, 0x8004886a
push 0x103f538
jmp 0x10edb0d
call fcn.01071a70
mov ebx, eax
call fcn.01127f00
test al, al
je 0x10edb08
push ebx
push 0x103f4f8
push 0x103f480
push edi
call fcn.01128b70
add esp, 0x10
push 0x103f408
lea ecx, [ebp - 0x10]
call fcn.0109db20
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x10edbb6
cmp byte [eax + 0x14], 1
jne 0x10edb32
mov dword [ecx + 0x70], 0x800488ed
jmp 0x10edb39
mov dword [ecx + 0x70], 0x80048820
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push ecx
mov eax, esp
mov dword [ebp - 0x34], esp
push eax
call edx
mov ecx, dword [esi + 0x20]
call fcn.0109c480
movzx eax, ax
movzx eax, ax
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.01081d40
mov eax, dword [ebp - 0x30]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x38], esp
mov edi, esp
push eax
mov byte [ebp - 4], 4
call fcn.010966c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x3c], esp
mov edi, esp
push eax
mov byte [ebp - 4], 5
call fcn.010966c0
add esp, 4
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + 0x20]
push ebx
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [edx + 8]
call fcn.010d5ad0
xor edi, edi
call fcn.01127f00
test al, al
je 0x10edbdb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 8]
push ecx
push esi
push 0x103f3d0
push 0x103f358
push 3
call fcn.01128b70
add esp, 0x14
mov ecx, dword [esi + 0x20]
add ecx, 0xc
call fcn.01098c30
push edi
mov ecx, esi
call fcn.010ec910
mov esi, eax
cmp esi, edi
jge 0x10edc11
call fcn.01127f00
test al, al
je 0x10edc11
push esi
push 0x103f2f8
push 0x103f280
push edi
call fcn.01128b70
add esp, 0x10
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10edc34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10edc5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret