Function at 0x1000660e
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5c44
call fcn.10023320
push ebx
push esi
push edi
mov esi, 0x17ff
mov byte [ebp - 0x5c40], 0
xor edi, edi
lea eax, [ebp - 0x5c3f]
push esi
mov ebx, ecx
mov dword [ebp - 0x10], edi
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.10017e80
add esp, 0xc
mov dword [ebp - 4], 0x1800
lea eax, [ebp - 0x443f]
mov byte [ebp - 0x4440], 0
push esi
push edi
push eax
call fcn.10017e80
add esp, 0xc
mov byte [ebp - 0xc40], 0
lea eax, [ebp - 0xc3f]
push 0x3ff
push edi
push eax
call fcn.10017e80
add esp, 0xc
call fcn.1000528f
mov esi, eax
lea ecx, [ebp - 0xc2f]
mov edx, esi
mov dword [ebp - 8], esi
call fcn.10005441
push 0x11
push dword [ebp + 8]
lea eax, [ebp - 0xc40]
push eax
call fcn.10017fb0
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4440]
push eax
lea edx, [esi + 0x11]
lea ecx, [ebp - 0xc40]
call fcn.10001bf7
add esp, 0xc
test eax, eax
je 0x10006aec
mov eax, dword [ebp - 4]
test eax, eax
jle 0x10006aec
mov edx, dword [ebp + 0xc]
cmp edx, 0x11
jbe 0x1000671e
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x5c40]
mov dword [ebp + 0xc], 0x1800
push eax
add edx, 0xffffffef
lea ecx, [ecx + 0x11]
call fcn.10001bf7
add esp, 0xc
test eax, eax
je 0x10006aec
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
test edi, edi
jle 0x10006aec
mov eax, dword [ebp - 4]
add edi, 0x200
add edi, eax
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2c40], ax
lea eax, [ebp - 0x2c3e]
push eax
mov dword [ebp + 0xc], edi
call fcn.10017e80
add esp, 0xc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mov dword [ebp + 8], edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001afe8
pop ecx
push 9
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x3e]
xor eax, eax
pop ecx
mov word [ebp - 0x40], ax
rep stosd dword es:[edi], eax
push 0
xor ecx, ecx
push 4
pop edx
inc ecx
stosw word es:[edi], ax
call fcn.1000531a
pop ecx
push 0
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.1000534b
pop ecx
lea eax, [ebp - 0x40]
push eax
push str.Cookie:__s
mov eax, 0x1000
push eax
push eax
lea eax, [ebp - 0x2c40]
push eax
call fcn.100188f7
add esp, 0x14
lea edi, [ebp - 0x40]
push 0xa
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x2c40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.10018ee3
add esp, 0xc
lea eax, [ebp - 0x2c40]
push 0x1000
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x4440]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c40], cx
lea eax, [ebp - 0x2c40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.1001af77
mov edi, dword [ebp - 0x10]
add esp, 0xc
call fcn.10018e74
add eax, esi
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ecx + edx]
cmp edi, 0x400
jg 0x1000682b
lea eax, [edx + 0x1e]
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
test edi, edi
jle 0x10006984
mov ebx, dword [ebp - 8]
push 0x14
imul ebx, ebx
pop edx
xor eax, eax
lea edi, [ebp - 0x2c40]
mov ecx, 0x800
rep stosd dword es:[edi], eax
push edx
xor edi, edi
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.10017e80
mov eax, dword [ebp + 8]
add esp, 0xc
imul eax, esi
push 3
pop ecx
cdq
idiv ecx
push edi
mov ecx, edx
lea edx, [ecx + 4]
inc ecx
call fcn.1000531a
pop ecx
push edi
lea edx, [ebp - 0x40]
mov ecx, eax
call fcn.1000534b
pop ecx
lea eax, [ebp - 0x40]
push eax
push str.___s
mov eax, 0x1000
push eax
push eax
lea eax, [ebp - 0x2c40]
push eax
call fcn.100188f7
add esp, 0x14
lea edi, [ebp - 0x40]
push 0xa
pop eax
mov ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c40]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.1001af77
mov edi, dword [ebp + 8]
add esp, 0xc
imul edi, edi
mov dword [ebp + 8], edi
call fcn.10018e74
add eax, ebx
add eax, edi
push 0x28
cdq
pop ecx
idiv ecx
mov esi, edx
call fcn.10018e74
add eax, edi
cdq
push 0x14
pop ecx
idiv ecx
push 0x64
pop ecx
lea eax, [esi + edx]
mov esi, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
imul eax, esi
cdq
idiv ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ecx, [edx + eax]
cmp ecx, esi
jle 0x10006915
mov eax, esi
sub eax, edx
mov dword [ebp - 8], eax
xor eax, eax
lea edi, [ebp - 0x2c40]
push 0x1000
mov ecx, 0x800
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c40]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x5c40]
add eax, edx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp - 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c40], cx
lea eax, [ebp - 0x2c40]
push eax
push dword [ebp + 0xc]
push edi
call fcn.1001af77
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp - 8]
inc dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 4], eax
mov esi, eax
push 0x14
pop edx
jl 0x10006844
mov ebx, dword [ebp - 0x18]
jmp 0x10006987
mov edi, dword [ebp - 0xc]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push 0x80000000
push 0xffffffffffffffff
push str.Cookie:
push dword [ebx + 0x274]
call esi
push 0xa0000000
push edi
call fcn.10018631
pop ecx
push eax
push edi
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x10006aec
push edi
call fcn.1001afe3
xor eax, eax
mov dword [esp], 0x7fe
push eax
mov word [ebp - 0x840], ax
lea eax, [ebp - 0x83e]
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x840]
push str.Content_Length:_0
push 0x32
push 0x32
push eax
call fcn.100188f7
add esp, 0x10
lea eax, [ebp - 0x840]
push 0xa0000000
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x840]
push eax
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x10006aec
xor eax, eax
lea edi, [ebp - 0x840]
mov ecx, 0x200
rep stosd dword es:[edi], eax
push str.User_Agent:
mov edi, 0x400
lea eax, [ebp - 0x840]
push edi
push eax
call fcn.10018ee3
add esp, 0xc
lea eax, [ebx + 0x64]
push eax
lea eax, [ebp - 0x840]
push edi
push eax
call fcn.1001af77
add esp, 0xc
lea eax, [ebp - 0x840]
push 0xa0000000
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x840]
push eax
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x10006aec
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x840]
push str.Cache_Control:_no_cache
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x840]
push 0x80
push eax
call fcn.10018ee3
add esp, 0xc
lea eax, [ebp - 0x840]
push 0xa0000000
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x840]
push eax
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x10006aec
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebx + 0x274]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
jmp 0x10006aee
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8