Function at 0x1000c0d0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039a68
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
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
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000c12c
push eax
call esi
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1000c13d
push eax
call esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1000c14e
push eax
call esi
mov dword [ebx + 0xc], 0
push edi
call fcn.1001f3d0
mov edx, eax
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp byte [edx], 0
jne 0x1000c174
xor ecx, ecx
jmp 0x1000c189
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c180
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.10001830
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 4], 0
push dword [eax]
call fcn.1001f3d0
mov edx, eax
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp byte [edx], 0
jne 0x1000c1d0
xor ecx, ecx
jmp 0x1000c1de
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c1d5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.10001830
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push 0
push 0x10041bc8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.10001830
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0
push 0x10041bc8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10001830
push 1
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.1000da50
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c338
push esi
push 0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100084d0
mov edi, eax
lea eax, [ebp - 0x58]
cmp eax, edi
je 0x1000c2a2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x1000c287
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10001b80
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
call fcn.10001b10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x1000c2c4
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.10001b80
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x8c]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xc0]
push eax
call fcn.100084d0
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1000c316
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1000c2fb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10001b80
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.10001b10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x1000c338
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.10001b80
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0xa8], 4
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0x74], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x1000c3ac
push ecx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000c383
mov eax, dword [eax]
push 0
push 0x50
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x1000c3ac
inc eax
push eax
push dword [ebp - 0xc0]
call fcn.100036b0
cmp dword [ebx + 0x10], 0
je 0x1000c3fd
push ecx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000c3cb
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push 0x100441b8
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xac]
cmp eax, 8
jb 0x1000c3fd
inc eax
push eax
push dword [ebp - 0xc0]
call fcn.100036b0
mov esi, dword [ebx + 0x18]
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
je 0x1000c53b
nop dword [eax + eax]
push 0x10044304
lea edx, [esi + 0x10]
lea ecx, [ebp - 0xc0]
call fcn.10009c00
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10009b80
add esp, 0x10
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x1000c45a
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.10001b80
cmp dword [ebx + 0x14], 0
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
je 0x1000c4c7
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000c494
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ecx, dword [ebp - 0xd0]
mov edi, eax
mov dword [ebp - 0xc4], edi
cmp ecx, 8
jb 0x1000c4cd
inc ecx
push ecx
push dword [ebp - 0xe4]
call fcn.100036b0
jmp 0x1000c4cd
mov edi, dword [ebp - 0xc4]
test edi, edi
je 0x1000c627
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000c4ee
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
cmp byte [esi + 0xd], 0
jne 0x1000c532
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1000c513
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1000c532
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x1000c507
jmp 0x1000c532
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000c530
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x1000c530
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000c520
mov esi, eax
cmp esi, dword [ebx + 0x18]
jne 0x1000c410
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
je 0x1000c588
push 0
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
test edi, edi
je 0x1000c588
push 0
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xcc]
push 0
push 0x20000013
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, eax
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov byte [ebp - 4], 9
test edi, edi
je 0x1000c6cf
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [eax]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
push dword [ebx + 0x14]
call edi
test eax, eax
je 0x1000c6b1
mov eax, dword [ebp - 0xa8]
inc eax
push eax
call fcn.1001e970
mov ecx, dword [ebp - 0xa8]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.10021780
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0xa8]
push esi
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000c6a8
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x1000c645
xor ecx, ecx
jmp 0x1000c659
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000c588
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
jmp 0x1000c588
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c650
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10001830
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x70]
call fcn.100087a0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000c690
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
push esi
call fcn.1001e96b
add esp, 4
cmp dword [ebp - 0xa8], 0
ja 0x1000c5b0
jmp 0x1000c6b1
push esi
call fcn.1001e96b
add esp, 4
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.1001f4f0
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
jmp 0x1000c75d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xc0]
call fcn.100058a0
push eax
mov edx, str.errno_
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
call fcn.10008d20
add esp, 4
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xac]
cmp eax, 0x10
jb 0x1000c719
inc eax
lea ecx, [ebp - 0xc0]
push eax
push dword [ebp - 0xc0]
call fcn.10001b80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0xac], 0xf
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
call fcn.1001f4f0
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000c75d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1000c772
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10001b80
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x1000c799
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10001b80
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x1000c7c0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10001b80
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x1000c7f0
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.10001b80
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp eax, 0x10
jb 0x1000c826
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10001b80
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