Function at 0x1001b310
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b5a6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1003e500]
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
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x58], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x48], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [0x1003f590]
mov byte [ebp - 4], 4
nop
test eax, eax
jne 0x1001b3de
push eax
push eax
push eax
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, 0x1003f590
xchg dword [ecx], eax
mov eax, dword [0x1003f590]
nop
test eax, eax
je 0x1001b6cb
mov eax, dword [0x1003f590]
nop
push 0
push dword [ebp + 0x34]
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x70], edi
test eax, eax
je 0x1001b6c0
cmp eax, 0xffffffff
je 0x1001b6c0
push dword [ebp - 0x50]
push dword [ebp - 0x48]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x54]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], esi
test eax, eax
je 0x1001b687
cmp eax, 0xffffffff
je 0x1001b687
mov edx, dword [ebp + 0x28]
test edx, edx
jne 0x1001b455
xor ecx, ecx
jmp 0x1001b460
cmp dword [ebp + 0x2c], 0xf
lea ecx, [ebp + 0x18]
cmova ecx, dword [ebp + 0x18]
push 0
push edx
push edx
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x68]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1001b687
mov esi, dword [ebp - 0x48]
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edi
test edi, edi
je 0x1001b5ac
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp edi, 0x7fffffff
ja 0x1001b728
cmp edi, 0x1000
jb 0x1001b512
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x1001b723
push eax
call fcn.1001ed16
add esp, 4
test eax, eax
je 0x1001b72d
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x1001b51d
push edi
call fcn.1001ed16
add esp, 4
mov esi, eax
push dword [ebp - 0x50]
add edi, esi
mov dword [ebp - 0x1c], esi
push 0
push esi
mov dword [ebp - 0x14], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 8
push eax
push dword [ebp - 0x4c]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x40]
push esi
call fcn.10012c90
mov byte [ebp - 4], 7
test esi, esi
je 0x1001b59e
mov eax, dword [ebp - 0x50]
cmp eax, 0x1000
jb 0x1001b57f
mov ecx, dword [esi - 4]
add eax, 0x23
sub esi, ecx
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x1001b72d
mov esi, ecx
push eax
push esi
call fcn.1001ed46
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x4c], 0
jbe 0x1001b5ac
mov esi, dword [ebp - 0x48]
jmp 0x1001b4a2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1001bb10
mov esi, dword [ebp - 0x44]
mov edi, eax
add esp, 8
cmp esi, edi
je 0x1001b62e
mov ecx, dword [esi + 0x14]
cmp ecx, 7
jbe 0x1001b5fe
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1001b5f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b72d
mov eax, edx
push ecx
push eax
call fcn.1001ed46
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x28]
call fcn.100059f0
xor edi, edi
mov dword [ebp - 0x70], edi
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 4], 9
mov dword [esi + 0x30], ecx
test eax, eax
je 0x1001b658
cmp eax, 0xffffffff
je 0x1001b658
push eax
call dword [0x1002db0c]
xor esi, esi
mov dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0xa
mov edx, dword [ecx + 0x34]
mov dword [ecx + 0x34], eax
test edx, edx
je 0x1001b67d
cmp edx, 0xffffffff
je 0x1001b67d
push edx
call dword [0x1002db0c]
lea ecx, [ebp - 0x40]
call fcn.1000bb60
jmp 0x1001b693
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x38], eax
mov byte [ebp - 4], 0xb
test esi, esi
je 0x1001b6a7
cmp esi, 0xffffffff
je 0x1001b6a7
push esi
call dword [0x1002db0c]
mov esi, dword [ebp - 0x44]
mov byte [ebp - 4], 0xc
test edi, edi
je 0x1001b6d4
cmp edi, 0xffffffff
je 0x1001b6d4
push edi
call dword [0x1002db0c]
jmp 0x1001b6d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x38], eax
jmp 0x1001b6aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x38], eax
mov ecx, dword [ebp + 0x2c]
cmp ecx, 0xf
jbe 0x1001b704
mov edx, dword [ebp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b6fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b72d
push ecx
push edx
call fcn.1001ed46
add esp, 8
mov eax, esi
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.1001f14e
mov esp, ebp
pop ebp
ret 0x40
call fcn.100069e0
call fcn.10012b00
call fcn.10020630
int3