Function at 0x10006e8f
Capabilities:
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.10018631
pop ecx
test eax, eax
je 0x1000707a
lea edi, [esi + 0x31a]
push edi
call fcn.10018631
pop ecx
test eax, eax
je 0x1000707a
lea ebx, [esi + 0x37e]
push ebx
call fcn.10018631
pop ecx
test eax, eax
je 0x1000707a
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.10017e80
add esp, 0xc
xor eax, eax
mov word [ebp - 0x628], ax
push 0x206
push eax
lea eax, [ebp - 0x626]
push eax
call fcn.10017e80
add esp, 0xc
mov byte [ebp - 0x110], 0
lea eax, [ebp - 0x10f]
push 0x103
push 0
push eax
call fcn.10017e80
add esp, 0xc
mov byte [ebp - 0x218], 0
lea eax, [ebp - 0x217]
push 0x103
push 0
push eax
call fcn.10017e80
add esp, 0xc
lea eax, [ebp - 0x830]
push ebx
push edi
push str._s:_s
mov ebx, 0x104
push ebx
push eax
call fcn.10018916
add esp, 0x14
lea eax, [ebp - 0x110]
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10018710
pop ecx
mov edx, eax
lea ecx, [ebp - 0x110]
call fcn.10001bf7
add esp, 0xc
test eax, eax
je 0x10007141
cmp dword [ebp - 4], 0
jle 0x10007141
xor eax, eax
lea edi, [ebp - 0x628]
mov ebx, 0x82
push 0x104
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x628]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
lea edi, [ebp - 0x420]
mov ecx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x628]
push eax
push str.Proxy_Authorization:_Basic__s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.10018916
add esp, 0x10
lea eax, [ebp - 0x420]
mov ebx, 0xa0000000
push ebx
push eax
call fcn.10018631
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x274]
call edi
test eax, eax
je 0x10007141
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10018631
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
push dword [esi + 0x278]
call edi
test eax, eax
je 0x10007141
push dword [ebp + 0xc]
mov eax, dword [esi + 0x274]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x27c], eax
call fcn.10006af7
test eax, eax
jne 0x100070a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.0x02__SD_failed:_0x_x.
jmp 0x1000713a
push 0
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x100070c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.0x02__RCRR_failed:_0x_x.
jmp 0x1000713a
mov ecx, esi
call fcn.10007467
mov edi, eax
cmp edi, 0x191
je 0x100070e1
cmp edi, 0x197
jne 0x10007127
and dword [ebp + 8], 0
lea eax, [ebp + 8]
and dword [ebp + 0xc], 0
and dword [ebp - 4], 0
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
push 0
lea eax, [esi + 0x37e]
push eax
lea eax, [esi + 0x31a]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x27c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
cmp edi, 0xc8
jne 0x10007134
xor eax, eax
inc eax
jmp 0x10007143
push edi
push str.0x02__Status:__d.
call fcn.10001dcc
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8