Function at 0x1000d350
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039b8e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x14], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
je 0x1000d55d
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], cx
push eax
mov dword [ebp - 4], ecx
call fcn.1001f3d0
mov esi, eax
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000d456
push esi
lea ecx, [ebp - 0x68]
call fcn.10001690
push ecx
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1000d720
mov edi, eax
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x1000d417
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000d3fa
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100036b0
xor eax, eax
mov dword [ebp - 0x14], 7
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003640
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x1000d429
inc eax
push eax
push dword [ebp - 0x50]
call fcn.100036b0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x50], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
cmp eax, 0x10
jb 0x1000d456
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.10001b80
xor edi, edi
mov dword [ebp - 0x30], 0
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push 0x16
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000d4dd
mov eax, dword [ebp - 0x30]
xor ecx, ecx
add eax, 2
mov edx, 2
shr eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001e970
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d4dd
mov ecx, dword [ebp - 0x30]
add ecx, 2
push ecx
push 0
push edi
call fcn.10021780
add esp, 0xc
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push ecx
push edi
push eax
push 0xffff
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x1000d4e0
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 0
je 0x1000d531
test edi, edi
je 0x1000d53e
cmp dword [ebp - 0x30], 0
jbe 0x1000d531
push edi
lea ecx, [ebp - 0x68]
call fcn.10002bf0
push ecx
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1000d7f0
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1000d516
mov eax, dword [eax]
push eax
call fcn.1001f4f0
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
lea ecx, [ebp - 0x50]
call fcn.100015d0
lea ecx, [ebp - 0x68]
call fcn.10002b30
test edi, edi
je 0x1000d53e
push edi
call fcn.1001e96b
add esp, 4
test esi, esi
je 0x1000d54b
push esi
call fcn.1001e96b
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000d55d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100036b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 0xc