Function at 0x1000df40
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 0x100a0b9b
mov eax, dword fs:[0]
push eax
mov eax, 0x352c
call fcn.10061f80
mov eax, dword [0x100d10d4]
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 eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3504], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3528], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3518], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3534], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x1000e697
lea ecx, [ebp - 0x34fc]
call fcn.1000e910
push 4
push dword [0x100ad950]
mov eax, 0x50
mov dword [ebp - 0x10ac], 2
mov word [ebp - 0x10b0], ax
lea eax, [ebp - 0x34fc]
push 0x21
push eax
mov dword [ebp - 0x10a8], 4
call fcn.10075c26
push eax
call fcn.1000d4f0
add esp, 0x14
lea ecx, [ebp - 0x34fc]
call fcn.1000e910
lea ecx, [ebp - 0x34fc]
call fcn.1000e910
push esi
lea ecx, [ebp - 0x34fc]
call fcn.1000fe40
test eax, eax
je 0x1000e697
mov eax, dword [ebp - 0x10ac]
mov dword [ebp - 0x3524], eax
cmp eax, 2
je 0x1000e038
cmp eax, 3
jne 0x1000e697
movzx eax, word [ebp - 0x10b0]
mov dword [ebp - 0x3530], eax
call fcn.1000db70
mov ecx, eax
test ecx, ecx
je 0x1000e6c9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3510], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30b4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e070
sub ecx, edx
lea eax, [ebp - 0x30b4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3510]
call fcn.10014ae0
lea ecx, [ebp - 0x20b2]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e0a0
mov esi, dword [ebp - 0x3510]
lea eax, [ebp - 0x20b2]
mov ebx, eax
mov dword [ebp - 0x350c], eax
sub ebx, esi
sub ecx, edx
sar ebx, 1
sar ecx, 1
mov edi, dword [esi - 0xc]
mov dword [ebp - 0x3508], edi
js 0x1000e6d3
push ecx
push eax
call fcn.10075d58
mov edx, eax
mov ecx, bind
sub ecx, edx
mov dword [ebp - 0x3514], edx
add esp, 8
cmp ecx, edi
jl 0x1000e6dd
add edi, edx
js 0x1000e6e7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1000e128
push edi
lea ecx, [ebp - 0x3510]
call fcn.100144a0
mov esi, dword [ebp - 0x3510]
mov edx, dword [ebp - 0x3514]
mov ecx, dword [ebp - 0x3508]
cmp ebx, ecx
ja 0x1000e13b
lea eax, [esi + ebx*2]
mov dword [ebp - 0x350c], eax
lea eax, [edx + edx]
push eax
push dword [ebp - 0x350c]
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.10018520
add esp, 0x10
cmp edi, dword [esi - 8]
jg 0x1000e6d3
xor eax, eax
mov dword [esi - 0xc], edi
xor ecx, ecx
mov word [esi + edi*2], ax
cmp dword [ebp - 0x3524], 3
mov eax, 0x800000
mov dword [ebp - 0x3520], 1
cmovne eax, ecx
mov dword [ebp - 0x3508], ecx
mov dword [ebp - 0x3524], eax
mov byte [ebp - 4], 4
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x3508], edi
test edi, edi
jne 0x1000e1ab
jmp 0x1000e67b
push 4
lea eax, [ebp - 0x3520]
push eax
push 0x50
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x34ba]
push 0
push dword [ebp - 0x3530]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
mov dword [ebp - 0x350c], ebx
test ebx, ebx
jne 0x1000e203
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], ebx
jmp 0x1000e67b
push 4
lea eax, [ebp - 0x3520]
push eax
push 0x50
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 0xd
push dword [ebp - 0x3524]
push 0
push 0
push dword [ebp - 0x3534]
push esi
push dword [ebp - 0x3518]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x3500], eax
test eax, eax
jne 0x1000e29d
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x3500]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x1000e272
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 4
push ebx
call ecx
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], 0
jmp 0x1000e67b
push 4
lea ecx, [ebp - 0x3520]
push ecx
push 0x50
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x3538]
mov dword [ebp - 0x3538], 8
push eax
push 0x3f
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x32b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1000e32a
lea eax, [ebp - 0x31b6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x1000e32a
push 0
lea eax, [ebp - 0x31b6]
push eax
lea eax, [ebp - 0x32b8]
push eax
push 1
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
mov eax, dword [ebp - 0x3504]
test eax, eax
je 0x1000e354
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x10000000
push eax
mov eax, dword [ebp - 0x3504]
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea eax, [ebp - 0x3500]
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
push dword [ebp - 0x3528]
push 0
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jns 0x1000e3cc
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x3500]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x1000e3a1
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 4
push ebx
call ecx
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], 0
jmp 0x1000e67b
push 0
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1000e430
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x3500]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x1000e405
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 4
push ebx
call ecx
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], 0
jmp 0x1000e67b
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.1006e460
add esp, 0xc
mov dword [ebp - 0x3528], 0x80
lea eax, [ebp - 0x3528]
push 0
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 5
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x351c]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x90]
movlpd qword [ebp - 0x351c], xmm0
push eax
call dword [sym.imp.SHLWAPI.dll_StrToInt64ExW]
cmp dword [ebp - 0x3518], 0
jl 0x1000e4b6
mov edx, dword [ebp - 0x351c]
jg 0x1000e4a6
test edx, edx
je 0x1000e4b6
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x3518]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x352c]
push edx
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x351c], xmm0
push dword [ebp - 0x3518]
movlpd qword [ebp - 0x352c], xmm0
push dword [ebp - 0x351c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x1000e62e
cmp dword [ebp - 0x352c], 0
jne 0x1000e62e
cmp dword [ebp - 0x3528], 0
jne 0x1000e62e
lea eax, [ebp - 0x3504]
mov dword [ebp - 0x3504], 0
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000e5df
nop
cmp dword [ebp - 0x3504], 0
jbe 0x1000e5d9
push 0x1000
lea eax, [ebp - 0x1090]
push 0
push eax
call fcn.1006e460
add esp, 0xc
lea eax, [ebp - 0x3504]
push eax
push 0x1000
lea eax, [ebp - 0x1090]
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000e5d9
mov edx, dword [ebp - 0x3504]
test edx, edx
je 0x1000e5d9
mov eax, dword [ebp + 0xc]
lea esi, [ebp - 0x3514]
push esi
push edx
mov dword [ebp - 0x3514], 0
lea edx, [ebp - 0x1090]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x1000e5d9
mov eax, dword [ebp - 0x3514]
cmp eax, dword [ebp - 0x3504]
jne 0x1000e5d9
lea eax, [ebp - 0x3504]
mov dword [ebp - 0x3504], 0
push eax
push dword [ebp - 0x3500]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000e530
mov esi, dword [ebp - 0x3510]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x3500]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x1000e606
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 4
push ebx
call ecx
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], 0
jmp 0x1000e67b
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x3500]
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test eax, eax
je 0x1000e655
push eax
call ecx
mov ecx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3500], 0
mov byte [ebp - 4], 4
push ebx
call ecx
mov dword [ebp - 0x350c], 0
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x3508], 0
mov byte [ebp - 4], 0
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000e697
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000e6ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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.10061eb3
mov esp, ebp
pop ebp
ret 0x2c
push 0x80004005
call fcn.1000d6a0
push 0x80070057
call fcn.1000d6a0
push 0x80070057
call fcn.1000d6a0
push 0x80070057
call fcn.1000d6a0
int3