Function at 0x10196ef0
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023f80d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x102e91c0]
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 esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3a], 1
mov byte [ebp - 0x39], 0
nop dword [eax + eax]
cmp byte [esi + 0x20], 0
je 0x10197320
mov eax, dword [esi + 0xb0]
lea ebx, [esi + 0xb0]
test eax, eax
je 0x10196f57
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebx], 0
mov eax, dword [esi + 0x24]
mov edi, 0x800100
mov ecx, 0x100
lea edx, [eax + 0x170]
cmp dword [eax + 0x18c], 1
cmovne edi, ecx
cmp dword [edx + 0x14], 8
jb 0x10196f7c
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x10196f8a
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x10196f9b
mov ecx, dword [ecx]
push edi
push 0
push edx
push 0
push eax
push ecx
push dword [esi + 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebx], eax
test eax, eax
je 0x101972da
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x1019700d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x1019700d
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x1019700d
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
jb 0x10196fe5
mov ecx, dword [ecx]
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x10196ff0
mov edx, dword [edx]
mov eax, dword [eax + 0x1b4]
push 0
push ecx
push edx
push eax
push 1
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x101971fa
mov eax, dword [esi + 0x24]
mov ecx, esi
push dword [ebp - 0x40]
mov al, byte [eax + 0x193]
call fcn.10196760
mov ecx, dword [ebx]
test al, al
je 0x101972cb
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x101972a6
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
mov ecx, esi
lea eax, [ebp - 0x34]
push eax
push 0x13
call fcn.101963b0
test al, al
je 0x1019728f
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.101eb879
add esp, 4
mov ecx, esi
push eax
call fcn.10196060
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.1000ae90
test bl, bl
je 0x1019729e
cmp dword [esi + 0x38], 0xb
jne 0x10197350
mov eax, dword [esi + 0x24]
mov ecx, dword [0x102eec4c]
mov byte [eax + 0x192], 1
test ecx, ecx
je 0x101970ca
cmp byte [0x102eec26], 0
jne 0x101970d5
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Response_from_proxy_server_is_:
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1024852c]
call edi
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.101965a0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x10197124
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10195900
jmp 0x10197182
mov eax, dword [ebp - 0x14]
test al, 0x10
je 0x1019713a
mov eax, dword [esi + 0x24]
mov dword [eax + 0x1b4], 0x10
jmp 0x10197182
test al, 2
je 0x1019714d
mov eax, dword [esi + 0x24]
mov dword [eax + 0x1b4], 2
jmp 0x10197182
test al, 4
je 0x10197160
mov eax, dword [esi + 0x24]
mov dword [eax + 0x1b4], 4
jmp 0x10197182
test al, 8
je 0x10197173
mov eax, dword [esi + 0x24]
mov dword [eax + 0x1b4], 8
jmp 0x10197182
mov ecx, dword [esi + 0x24]
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
cmp byte [ebp - 0x39], 0
jne 0x10197350
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x101971bb
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10197248
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101971ce
cmp byte [0x102eec26], 0
jne 0x101971d9
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1024852c]
call edi
add esp, 8
mov byte [ebp - 0x39], 1
jmp 0x10196f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10195900
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x1019721b
cmp byte [0x102eec26], 0
jne 0x10197226
call fcn.1018f140
mov ecx, dword [0x102eec4c]
mov eax, dword [ecx]
push str.Failed_to_set_the_proxy_credentials
push 0x1025b044
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1024852c]
call esi
add esp, 0xc
jmp 0x10197350
mov edi, dword [0x102eec4c]
test edi, edi
je 0x1019725b
cmp byte [0x102eec26], 0
jne 0x10197266
call fcn.1018f140
mov edi, dword [0x102eec4c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
push 0x1025b044
push edi
call dword [0x1024852c]
call esi
add esp, 0x10
jmp 0x10197350
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.1000ae90
mov al, byte [ebp - 0x3a]
jmp 0x10197352
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101972b9
cmp byte [0x102eec26], 0
jne 0x101972c4
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x101972fd
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebx], 0
jmp 0x10197350
mov ecx, dword [0x102eec4c]
test ecx, ecx
je 0x101972ed
cmp byte [0x102eec26], 0
jne 0x101972f8
call fcn.1018f140
mov ecx, dword [0x102eec4c]
push str.createRequest_:_failed_to_open_the_request_handle
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1024852c]
call edi
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10195900
jmp 0x10197350
sub esp, 0x18
mov ecx, esp
push 0
push 0x1025b044
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1000aef0
push 0
push 0x13
mov ecx, esi
call fcn.101957c0
xor al, al
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.101cff65
mov esp, ebp
pop ebp
ret 8