Function at 0x1000cf10
Capabilities:
Initialize winhttp library
Reference http user-agent string
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058171
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100754f8]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x3c
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.100365a0
add esp, 0xc
mov dword [ebp - 0x224], 0x3c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x210], 0xffffffff
mov dword [ebp - 0x1f4], 0xffffffff
push eax
push 0
push 0
push esi
mov dword [ebp - 0x1ec], 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x1000d285
xor esi, esi
mov dword [ebp - method.WinHTTPWrappers::CHandle.virtual_0], 0x1005bb34
mov dword [ebp - 0x1e4], esi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1dc], edi
mov dword [ebp - method.WinHTTPWrappers::CHandle.virtual_0], 0x1005bb44
lea ecx, [ebp - 0x1d0]
call fcn.1000b260
push edi
push edi
push edi
push edi
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_67.0.3396.99_Safari_537.36
mov byte [ebp - 4], 2
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
jne 0x1000d001
call fcn.1000b900
mov dword [ebp - 0x1d4], eax
jmp 0x1000d013
mov esi, eax
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1e4], esi
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1000d02e
call fcn.1000b900
cmp dword [ebp - 0x1d4], 0
jl 0x1000d266
mov ecx, dword [ebp - 0x214]
xor ebx, ebx
mov eax, dword [ebp - 0x210]
mov edx, 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edx
mov word [ebp - 0x28], bx
lea eax, [ecx + eax*2]
cmp ecx, eax
je 0x1000d074
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.10006ee0
mov edx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x20c]
cmp edx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
jne 0x1000d09b
call fcn.1000b900
mov ebx, eax
jmp 0x1000d0a5
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x1dc], edi
lea ecx, [ebp - 0x28]
call fcn.10003fa0
test ebx, ebx
js 0x1000d266
mov ecx, dword [ebp - 0x1f0]
xor edx, edx
mov eax, dword [ebp - 0x1ec]
xorps xmm0, xmm0
movlpd qword [ebp - 0x158], xmm0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x48], 0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], dx
cmp ecx, eax
je 0x1000d0ff
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.10006ee0
mov ecx, dword [ebp - 0x1f8]
xor edx, edx
mov eax, dword [ebp - 0x1f4]
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea eax, [ecx + eax*2]
mov word [ebp - 0x40], dx
cmp ecx, eax
je 0x1000d138
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.10006ee0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1000b030
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.10003fa0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.10003fa0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push 0
cmovae ecx, dword [ebp - 0x70]
mov edx, 0x800000
push 0x1fa0
xor eax, eax
cmp dword [ebp - 0x218], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push 0x1005bd20
push ecx
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.1000c070
test eax, eax
js 0x1000d25e
push str.Expires:_0_r_nCache_Control:_no_store_r_n
lea ecx, [ebp - 0x28]
call fcn.100036c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x1000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x1cc]
mov byte [ebp - 4], 8
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x1000d1e8
call fcn.1000b900
push 0
push 0
lea ecx, [ebp - 0x1d0]
call fcn.1000d770
test eax, eax
js 0x1000d256
push dword [ebp - 0x1d8]
mov ecx, dword [ebp - 0x1d8]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.1000b0c0
lea ecx, [ebp - 0x28]
call fcn.10003fa0
lea ecx, [ebp - 0x70]
call fcn.10003fa0
lea ecx, [ebp - 0x1d0]
call fcn.1000b450
lea ecx, [ebp - 0x1e0]
call fcn.1000b750
lea ecx, [ebp - 0x1e8]
call fcn.1000b750
mov eax, 1
jmp 0x1000d287
lea ecx, [ebp - 0x28]
call fcn.10003fa0
lea ecx, [ebp - 0x70]
call fcn.10003fa0
lea ecx, [ebp - 0x1d0]
call fcn.1000b450
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x1000d27e
push edi
call ebx
test esi, esi
je 0x1000d285
push esi
call ebx
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.10033ba6
mov esp, ebp
pop ebp
ret 8