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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039af8
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
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 - 0xd0], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000c94c
push eax
call esi
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1000c95d
push eax
call esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1000c96e
push eax
call esi
mov dword [ebx + 0xc], 0
push edi
call fcn.1001f3d0
mov edx, eax
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp byte [edx], 0
jne 0x1000c99a
xor ecx, ecx
jmp 0x1000c9a9
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c9a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.10001830
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 4], 0
push dword [ecx]
call fcn.1001f3d0
mov edx, eax
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp byte [edx], 0
jne 0x1000c9e7
xor ecx, ecx
jmp 0x1000c9f9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c9f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x70]
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 - 0xa8]
call fcn.1000da50
mov esi, eax
cmp esi, 0xffffffff
je 0x1000cb53
push esi
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xa8]
call fcn.100084d0
mov edi, eax
lea eax, [ebp - 0x58]
cmp eax, edi
je 0x1000caba
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x1000ca9f
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 - 0xb0]
cmp eax, 0x10
jb 0x1000cadc
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.10001b80
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0xa8]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0xc4]
push eax
call fcn.100084d0
mov esi, eax
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1000cb31
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1000cb16
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 - 0xb0]
cmp eax, 0x10
jb 0x1000cb53
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.10001b80
mov eax, dword [ebp - 0xc8]
push dword [eax]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0xac], 4
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x1000cbe2
push ecx
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000cbb9
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 - 0xb0]
cmp eax, 8
jb 0x1000cbe2
inc eax
push eax
push dword [ebp - 0xc4]
call fcn.100036b0
cmp dword [ebx + 0x10], 0
je 0x1000cc33
push ecx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000cc01
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push str.POST
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xb0]
cmp eax, 8
jb 0x1000cc33
inc eax
push eax
push dword [ebp - 0xc4]
call fcn.100036b0
mov esi, dword [ebx + 0x18]
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
je 0x1000cd6b
push 0x10044304
lea edx, [esi + 0x10]
lea ecx, [ebp - 0xc4]
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 - 0xb0]
cmp eax, 0x10
jb 0x1000cc8b
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.10001b80
cmp dword [ebx + 0x14], 0
mov dword [ebp - 0xb0], 0xf
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
je 0x1000ccf8
push ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.1000d720
cmp dword [eax + 0x14], 8
jb 0x1000ccc5
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 - 0xd4]
mov edi, eax
mov dword [ebp - 0xcc], edi
cmp ecx, 8
jb 0x1000ccfe
inc ecx
push ecx
push dword [ebp - 0xe8]
call fcn.100036b0
jmp 0x1000ccfe
mov edi, dword [ebp - 0xcc]
test edi, edi
je 0x1000ceaa
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000cd1f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
cmp byte [esi + 0xd], 0
jne 0x1000cd62
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1000cd44
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x1000cd62
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x1000cd38
jmp 0x1000cd62
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1000cd60
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x1000cd60
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1000cd50
mov esi, eax
cmp esi, dword [ebx + 0x18]
jne 0x1000cc41
push 0
push dword [ebp - 0x60]
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 0x1000cdfc
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x70]
mov esi, dword [ebp - 0x70]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cda0
sub ecx, edi
lea eax, [ebp - 0x70]
cmp edx, 0x10
lea edx, [ebp - 0x8c]
push edx
push ecx
cmovae eax, esi
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov edi, eax
test edi, edi
je 0x1000cdfc
push 0
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
test edi, edi
je 0x1000cdfc
push 0
lea eax, [ebp - 0xac]
push eax
push dword [ebp - 0xd0]
push 0
push 0x20000013
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, eax
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 9
test edi, edi
je 0x1000cf58
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 0
push eax
push dword [ebx + 0x14]
call edi
test eax, eax
je 0x1000cf34
mov eax, dword [ebp - 0xac]
inc eax
push eax
call fcn.1001e970
mov ecx, dword [ebp - 0xac]
mov esi, eax
inc ecx
push ecx
push 0
push esi
call fcn.10021780
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0xac]
push esi
push dword [ebx + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000cf2b
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x1000cec8
xor ecx, ecx
jmp 0x1000ced9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000cdfc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
jmp 0x1000cdfc
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000ced0
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 - 0x88]
call fcn.100087a0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000cf13
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 - 0xac], 0
ja 0x1000ce30
jmp 0x1000cf34
push esi
call fcn.1001e96b
add esp, 4
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.1001f4f0
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
jmp 0x1000cfe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
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 - 0xb0]
cmp eax, 0x10
jb 0x1000cfa2
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.10001b80
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0xb0], 0xf
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0xb4], 0
mov byte [ebp - 0xc4], 0
call fcn.1001f4f0
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000cfe6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10001b80
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x1000d001
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.10001b80
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 0x10
jb 0x1000d02b
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 0x1000d052
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10001b80
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x1000d079
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.10001b80
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp eax, 0x10
jb 0x1000d0a9
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
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