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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c8f5
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10073068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x3c]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], ecx
mov ecx, dword [ebp + 0x30]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 0x118], edx
mov edx, dword [ebp + 0x40]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 0
sub esp, 0x18
mov dword [ecx], 0
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x64], 0
push eax
mov dword [ebp - 0xcc], 0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xd0], 0x3c
mov dword [ebp - 0xc8], 0xffffffff
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0xbc], 0xffffffff
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0xa8], 0xffffffff
call fcn.10007e60
lea ecx, [ebp - 0x114]
call fcn.1000ee40
mov esi, eax
mov ecx, esp
mov byte [ebp - 4], 1
push edi
call fcn.10007e60
lea ecx, [ebp - 0x58]
call fcn.1000ee40
add esp, 0x18
push esi
push eax
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.1000c5f0
mov dword [ebp - 0xf0], 0x10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x1000f34d
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f343
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc49
push ecx
push edx
call fcn.10036bea
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x100]
cmp ecx, 8
jb 0x1000f3a5
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f39b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc49
push ecx
push edx
call fcn.10036bea
add esp, 8
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x94]
mov esi, dword [ebp - 0x94]
xor eax, eax
cmp edx, 8
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 7
cmovae ecx, esi
mov word [ebp - 0x114], ax
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f3e0
sub ecx, edi
lea eax, [ebp - 0x94]
sar ecx, 1
cmp edx, 8
lea edx, [ebp - 0xd0]
push edx
push 0
cmovae eax, esi
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x1000f41b
mov byte [ebp - 0xd1], al
jmp 0x1000fb9b
mov eax, dword [ebp - 0xc0]
xorps xmm0, xmm0
test eax, eax
je 0x1000f453
push dword [ebp - 0xbc]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.1000b7f0
lea eax, [ebp - 0x2c]
mov edx, 0x11
jmp 0x1000f47c
push 0
push 0x1006b324
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.1000b7f0
lea eax, [ebp - 0x58]
mov edx, 0x12
movups xmm0, xmmword [eax]
xor ecx, ecx
mov dword [ebp - 0xe4], edx
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], 7
test dl, 2
je 0x1000f4fb
mov ecx, dword [ebp - 0x44]
and edx, 0xfffffffd
mov dword [ebp - 0xe4], edx
cmp ecx, 8
jb 0x1000f4fb
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f4eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc53
push ecx
push edx
call fcn.10036bea
mov edx, dword [ebp - 0xe4]
add esp, 8
mov byte [ebp - 4], 8
test dl, 1
je 0x1000f547
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
mov dword [ebp - 0xe4], edx
cmp ecx, 8
jb 0x1000f547
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f53d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc53
push ecx
push edx
call fcn.10036bea
add esp, 8
push 0
push 0
push 0
push 0
push 0x1006b324
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, eax
push 4
lea eax, [ebp - 0x60]
mov dword [ebp - 0xf0], edi
push eax
push 0x54
push edi
mov dword [ebp - 0x60], 0xa80
call esi
test eax, eax
je 0x1000fb3f
test edi, edi
je 0x1000fb46
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push 0
push dword [ebp + 0x10]
cmovae eax, dword [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0xf8], eax
test eax, eax
je 0x1000fb3f
cmp dword [0x10075cf0], 8
mov ecx, 0x10075cdc
push 0x800100
cmovae ecx, dword [0x10075cdc]
push 0
push 0
push 0
push dword [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0xdc], edi
test edi, edi
jne 0x1000f603
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xf0]
call esi
jmp 0x1000fb46
push 0
push 0
push 0x7530
push 0x7530
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 4
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x3100
push eax
push 0x1f
push edi
call esi
test eax, eax
je 0x1000fb46
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.10007e60
lea ecx, [ebp - 0x114]
call fcn.1000ee40
mov esi, eax
add esp, 0x18
lea eax, [ebp + 0x14]
cmp eax, esi
je 0x1000f6c3
mov ecx, dword [ebp + 0x28]
cmp ecx, 8
jb 0x1000f691
mov edx, dword [ebp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f687
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc49
push ecx
push edx
call fcn.10036bea
add esp, 8
mov dword [ebp + 0x24], 0
xor eax, eax
mov dword [ebp + 0x28], 7
mov word [ebp + 0x14], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp + 0x14], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp + 0x24], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x100]
cmp ecx, 8
jb 0x1000f703
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000f6f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc49
push ecx
push edx
call fcn.10036bea
add esp, 8
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 0xf4]
mov eax, dword [esi + 0x14]
jne 0x1000f729
mov ecx, esi
cmp eax, 0x10
jb 0x1000f71b
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
push 0
push eax
push eax
push ecx
push 0
push 0
jmp 0x1000f748
mov edx, esi
cmp eax, 0x10
jb 0x1000f732
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x14]
cmp dword [ebp + 0x28], 8
push 0
cmovae ecx, dword [ebp + 0x14]
push eax
push eax
push edx
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1000fb46
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x1000f786
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1000fb14
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x1000f603
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [ebp - 0x40]
push 0
push eax
push dword [ebp - 0xe8]
mov dword [ebp - 0x40], 4
push 0
push 0x13
push edi
call esi
push 0
mov edi, eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0x16
push dword [ebp - 0xdc]
mov dword [ebp - 0xec], edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000f882
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x40]
inc edx
mov edi, dword [ecx + 0x10]
cmp edx, edi
ja 0x1000f7f7
mov dword [ecx + 0x10], edx
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x1000f7ef
mov eax, dword [ecx]
xor edi, edi
mov word [eax + edx*2], di
jmp 0x1000f85f
mov eax, dword [ebp - 0xe0]
mov ecx, edx
sub ecx, edi
mov eax, dword [eax + 0x14]
sub eax, edi
cmp ecx, eax
ja 0x1000f83d
mov eax, dword [ebp - 0xe0]
mov esi, eax
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x1000f81d
mov esi, dword [eax]
lea edi, [esi + edi*2]
test ecx, ecx
je 0x1000f82f
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor eax, eax
mov word [esi + edx*2], ax
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
jmp 0x1000f859
push 0
push ecx
mov byte [ebp - 0xe8], 0
push dword [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0xe0]
call fcn.1000fee0
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0x14], 8
jb 0x1000f867
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 0x40]
push eax
push ecx
push 0
push 0x16
push dword [ebp - 0xdc]
call esi
mov edi, eax
mov dword [ebp - 0xec], eax
test edi, edi
je 0x1000fb0e
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov esi, dword [ebp - 0xd8]
mov ecx, esi
push 0
push 0x1006b2a3
mov byte [ebp - 4], 9
call fcn.100097a0
mov edi, dword [ebp - 0xdc]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x40]
add dword [ecx], eax
test eax, eax
je 0x1000fa52
push 0
push 0x1006b2a3
lea ecx, [ebp - 0x58]
call fcn.100097a0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
cmp ecx, edx
ja 0x1000f913
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], ecx
cmovae eax, dword [ebp - 0x58]
mov byte [eax + ecx], 0
jmp 0x1000f969
mov esi, dword [ebp - 0x44]
mov edi, ecx
mov eax, esi
sub edi, edx
sub eax, edx
cmp edi, eax
ja 0x1000f944
cmp esi, 0x10
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push edi
push 0
lea esi, [edx + eax]
push esi
call fcn.10038920
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1000f95d
push 0
push edi
mov byte [ebp - 0xe8], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0xe8]
push edi
call fcn.1000be60
mov esi, dword [ebp - 0xd8]
mov edi, dword [ebp - 0xdc]
push dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.10038920
add esp, 0xc
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push dword [ebp - 0x40]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x1000fa86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x12]
nop
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x1000f9b0
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x114]
call fcn.10010090
or dword [ebp - 0xe4], 0xc
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 0xa
call fcn.1000eda0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x100]
cmp ecx, 8
jb 0x1000fa42
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fa38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc4e
push ecx
push edx
call fcn.10036bea
add esp, 8
mov esi, dword [ebp - 0xd8]
cmp dword [ebp - 0x40], 0
ja 0x1000f8c1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x1000fb14
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fb02
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc4e
jmp 0x1000fb02
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
mov edx, dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x58]
mov esi, dword [esi + 0x14]
mov eax, esi
mov edi, dword [ebp - 0x48]
sub eax, edx
mov dword [ebp - 0xf4], ecx
cmp edi, eax
ja 0x1000fae0
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + edx]
mov dword [ecx + 0x10], eax
mov eax, ecx
mov ecx, dword [ebp - 0xf4]
cmp esi, 0x10
jb 0x1000fac3
mov eax, dword [eax]
push edi
lea esi, [eax + edx]
push ecx
push esi
call fcn.100383a0
mov byte [esi + edi], 0
add esp, 0xc
mov edi, dword [ebp - 0xdc]
jmp 0x1000fa42
mov esi, dword [ebp - 0xd8]
push edi
push ecx
mov byte [ebp - 0x5c], 0
mov ecx, esi
push dword [ebp - 0x5c]
push edi
call fcn.1000bfc0
mov edi, dword [ebp - 0xdc]
jmp 0x1000fa48
push ecx
push edx
call fcn.10036bea
add esp, 8
jmp 0x1000fb14
mov edi, dword [ebp - 0xdc]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push dword [ebp - 0xf8]
call esi
push dword [ebp - 0xf0]
call esi
cmp dword [ebp - 0xec], 0
je 0x1000fb46
mov byte [ebp - 0xd1], 1
jmp 0x1000fb4d
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 0xd1], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x1000fb87
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fb7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc53
push ecx
push edx
call fcn.10036bea
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov ecx, dword [ebp - 0x80]
cmp ecx, 8
jb 0x1000fbd8
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fbce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc53
push ecx
push edx
call fcn.10036bea
add esp, 8
mov ecx, dword [ebp + 0x28]
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp ecx, 8
jb 0x1000fc28
mov edx, dword [ebp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000fc1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000fc53
push ecx
push edx
call fcn.10036bea
add esp, 8
mov al, byte [ebp - 0xd1]
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.10036bdc
mov esp, ebp
pop ebp
ret
call fcn.1003da55
call fcn.1003da55
call fcn.1003da55
int3