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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009a0e9
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100c520c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push esi
push 0
push 0
mov dword [ebp - 0x5c], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0x16
push dword [esi + 0x20]
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10040542
mov eax, dword [esi]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10067209
add esp, 4
mov dword [esi + 0xc], eax
push 0
push esi
push eax
push 0
push 0x16
push dword [esi + 0x20]
call edi
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
je 0x100405de
mov edx, dword [esi + 0xc]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040576
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.1003b7a0
mov dword [ebp - 4], 0
lea edi, [esi + 0xe0]
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x100405cf
mov ecx, edi
call fcn.10040120
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x28], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003b1a0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100405f0
push eax
call fcn.10067212
add esp, 4
nop
push esi
push dword [esi + 0x20]
mov dword [esi], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10040830
mov eax, dword [esi]
inc eax
push eax
call fcn.10067209
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x10040802
mov ecx, dword [esi]
inc ecx
push ecx
push 0
push eax
call fcn.10069900
add esp, 0xc
lea eax, [esi + 4]
push eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x100407ec
push dword [esi]
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
push dword [esi + 8]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1002a8b0
mov dword [ebp - 4], 2
lea edi, [esi + 0xf8]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1004068c
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x58]
push eax
push 0
call fcn.1003eac0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm1, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm1
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x10], 0
or edx, 1
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
movq qword [ebp - 0x64], xmm1
mov dword [ebp - 0x5c], edx
movups xmmword [ebp - 0x20], xmm0
cmp edi, eax
je 0x1004074d
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x10040722
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x1004070c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040859
mov eax, edx
push ecx
push eax
call fcn.100671fb
movups xmm0, xmmword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x5c]
movq xmm1, qword [ebp - 0x64]
mov dword [edi + 0x10], 0
mov eax, 0xf
mov dword [edi + 0x14], 0xf
movups xmmword [edi], xmm0
mov dword [ebp - 0x2c], eax
movq qword [edi + 0x10], xmm1
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x10040750
mov eax, dword [ebp - 0x2c]
and edx, 0xfffffffe
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x1004078d
mov ecx, dword [ebp - 0x40]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x10040783
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040859
push edx
push ecx
call fcn.100671fb
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x100407da
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100407d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040859
push edx
push ecx
call fcn.100671fb
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push dword [esi + 8]
call fcn.10067212
add esp, 4
cmp dword [esi], 0
ja 0x100405f0
jmp 0x10040808
mov dword [esi], 0
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x10040818
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10040822
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1004082c
push eax
call edi
mov al, 1
jmp 0x1004083e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067217
mov esp, ebp
pop ebp
ret
call fcn.1006c9f7
int3