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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ad65
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10070068]
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.10007810
lea ecx, [ebp - 0x114]
call fcn.1000c0f0
mov esi, eax
mov ecx, esp
mov byte [ebp - 4], 1
push edi
call fcn.10007810
lea ecx, [ebp - 0x58]
call fcn.1000c0f0
add esp, 0x18
push esi
push eax
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 2
call fcn.10009b50
mov dword [ebp - 0xf0], 0x10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x1000c5fd
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c5f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cef9
push ecx
push edx
call fcn.10035423
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 0x1000c655
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c64b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cef9
push ecx
push edx
call fcn.10035423
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 0x1000c690
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 0x1000c6cb
mov byte [ebp - 0xd1], al
jmp 0x1000ce4b
mov eax, dword [ebp - 0xc0]
xorps xmm0, xmm0
test eax, eax
je 0x1000c703
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.10009320
lea eax, [ebp - 0x2c]
mov edx, 0x11
jmp 0x1000c72c
push 0
push 0x10069294
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.10009320
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 0x1000c7ab
mov ecx, dword [ebp - 0x44]
and edx, 0xfffffffd
mov dword [ebp - 0xe4], edx
cmp ecx, 8
jb 0x1000c7ab
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c79b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf03
push ecx
push edx
call fcn.10035423
mov edx, dword [ebp - 0xe4]
add esp, 8
mov byte [ebp - 4], 8
test dl, 1
je 0x1000c7f7
mov ecx, dword [ebp - 0x18]
and edx, 0xfffffffe
mov dword [ebp - 0xe4], edx
cmp ecx, 8
jb 0x1000c7f7
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c7ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf03
push ecx
push edx
call fcn.10035423
add esp, 8
push 0
push 0
push 0
push 0
push 0x10069294
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 0x1000cdef
test edi, edi
je 0x1000cdf6
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 0x1000cdef
cmp dword [0x10072c14], 8
mov ecx, 0x10072c00
push 0x800100
cmovae ecx, dword [0x10072c00]
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 0x1000c8b3
push dword [ebp - 0xf8]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [ebp - 0xf0]
call esi
jmp 0x1000cdf6
push 0
push 0
push 0x1d4c0
push 0x1d4c0
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 0x1000cdf6
sub esp, 0x18
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.10007810
lea ecx, [ebp - 0x114]
call fcn.1000c0f0
mov esi, eax
add esp, 0x18
lea eax, [ebp + 0x14]
cmp eax, esi
je 0x1000c973
mov ecx, dword [ebp + 0x28]
cmp ecx, 8
jb 0x1000c941
mov edx, dword [ebp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c937
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cef9
push ecx
push edx
call fcn.10035423
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 0x1000c9b3
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000c9a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cef9
push ecx
push edx
call fcn.10035423
add esp, 8
cmp dword [ebp + 0x24], 0
mov esi, dword [ebp - 0xf4]
mov eax, dword [esi + 0x14]
jne 0x1000c9d9
mov ecx, esi
cmp eax, 0x10
jb 0x1000c9cb
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
push 0
push eax
push eax
push ecx
push 0
push 0
jmp 0x1000c9f8
mov edx, esi
cmp eax, 0x10
jb 0x1000c9e2
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 0x1000cdf6
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x1000ca36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x1000cdc4
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
jmp 0x1000c8b3
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 0x1000cb32
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ebp - 0x40]
inc edx
mov edi, dword [ecx + 0x10]
cmp edx, edi
ja 0x1000caa7
mov dword [ecx + 0x10], edx
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x1000ca9f
mov eax, dword [ecx]
xor edi, edi
mov word [eax + edx*2], di
jmp 0x1000cb0f
mov eax, dword [ebp - 0xe0]
mov ecx, edx
sub ecx, edi
mov eax, dword [eax + 0x14]
sub eax, edi
cmp ecx, eax
ja 0x1000caed
mov eax, dword [ebp - 0xe0]
mov esi, eax
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edx
jb 0x1000cacd
mov esi, dword [eax]
lea edi, [esi + edi*2]
test ecx, ecx
je 0x1000cadf
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 0x1000cb09
push 0
push ecx
mov byte [ebp - 0xe8], 0
push dword [ebp - 0xe8]
push ecx
mov ecx, dword [ebp - 0xe0]
call fcn.1000d190
mov ecx, dword [ebp - 0xe0]
cmp dword [ecx + 0x14], 8
jb 0x1000cb17
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 0x1000cdbe
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 0x10069223
mov byte [ebp - 4], 9
call fcn.10008310
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 0x1000cd02
push 0
push 0x10069223
lea ecx, [ebp - 0x58]
call fcn.10008310
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
cmp ecx, edx
ja 0x1000cbc3
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 0x1000cc19
mov esi, dword [ebp - 0x44]
mov edi, ecx
mov eax, esi
sub edi, edx
sub eax, edx
cmp edi, eax
ja 0x1000cbf4
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.10037170
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x1000cc0d
push 0
push edi
mov byte [ebp - 0xe8], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0xe8]
push edi
call fcn.10009780
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.10037170
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 0x1000cd36
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 0x1000cc60
push ecx
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x114]
call fcn.1000d340
or dword [ebp - 0xe4], 0xc
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 0xa
call fcn.1000c050
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x100]
cmp ecx, 8
jb 0x1000ccf2
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000cce8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cefe
push ecx
push edx
call fcn.10035423
add esp, 8
mov esi, dword [ebp - 0xd8]
cmp dword [ebp - 0x40], 0
ja 0x1000cb71
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x1000cdc4
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000cdb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cefe
jmp 0x1000cdb2
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 0x1000cd90
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 0x1000cd73
mov eax, dword [eax]
push edi
lea esi, [eax + edx]
push ecx
push esi
call fcn.10036be0
mov byte [esi + edi], 0
add esp, 0xc
mov edi, dword [ebp - 0xdc]
jmp 0x1000ccf2
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.100098e0
mov edi, dword [ebp - 0xdc]
jmp 0x1000ccf8
push ecx
push edx
call fcn.10035423
add esp, 8
jmp 0x1000cdc4
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 0x1000cdf6
mov byte [ebp - 0xd1], 1
jmp 0x1000cdfd
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov byte [ebp - 0xd1], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 8
jb 0x1000ce37
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ce2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf03
push ecx
push edx
call fcn.10035423
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 0x1000ce88
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ce7e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf03
push ecx
push edx
call fcn.10035423
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 0x1000ced8
mov edx, dword [ebp + 0x14]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000cece
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cf03
push ecx
push edx
call fcn.10035423
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.10035415
mov esp, ebp
pop ebp
ret
call fcn.1003a33a
call fcn.1003a33a
call fcn.1003a33a
int3