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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x101f62b4]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0xf], 1
mov byte [esp + 0xd], 0
cmp byte [esi + 0x20], 0
mov ebx, 0x100
je 0x100ecda7
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x100ec924
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0x24]
mov edi, 0x800100
lea edx, [eax + 0x170]
cmp dword [eax + 0x18c], 1
cmovne edi, ebx
cmp dword [edx + 0x14], 8
jb 0x100ec944
mov edx, dword [edx]
cmp dword [esi + 0x90], 8
lea eax, [esi + 0x7c]
jb 0x100ec952
mov eax, dword [eax]
cmp dword [esi + 0xa8], 8
lea ecx, [esi + 0x94]
jb 0x100ec963
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 [esi + 0xb0], eax
test eax, eax
je 0x100ecd61
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x192], 0
je 0x100ec9dd
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 0
je 0x100ec9dd
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x18], 0
je 0x100ec9dd
cmp dword [eax + 0x34], 8
lea ecx, [eax + 0x20]
jb 0x100ec9b1
mov ecx, dword [ecx]
cmp dword [eax + 0x1c], 8
lea edx, [eax + 8]
jb 0x100ec9bc
mov edx, dword [edx]
mov eax, dword [eax + 0x1b4]
push 0
push ecx
push edx
push eax
push 1
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x100ecc48
mov eax, dword [esi + 0x24]
mov al, byte [eax + 0x193]
cmp byte [esi + 0x20], 0
je 0x100ecd1a
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x100ec9fe
xor ebx, ebx
jmp 0x100eca08
cmp dword [eax + 0x14], 8
mov ebx, eax
jb 0x100eca08
mov ebx, dword [eax]
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100eca1b
cmp byte [0x101fc342], 0
jne 0x100eca26
call fcn.100e0200
mov ecx, dword [0x101fc34c]
call fcn.1010dc80
mov byte [esp + 0xe], al
nop
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
test edi, edi
jne 0x100eca9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f00
jne 0x100eca92
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100eca6d
cmp byte [0x101fc342], 0
jne 0x100eca78
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.redirection_detected._Sending_the_request_again
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
jmp 0x100eca30
push eax
mov ecx, esi
call fcn.100eb360
xor edi, edi
cmp byte [esp + 0xe], 0
je 0x100ecac6
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ecab6
cmp byte [0x101fc342], 0
jne 0x100ecac1
call fcn.100e0200
mov ecx, dword [0x101fc34c]
call fcn.1010e2b0
mov eax, dword [esi + 0xb0]
cmp edi, 1
jne 0x100ecd4e
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100eccf5
mov ecx, esi
call fcn.100ebc20
test al, al
je 0x100eccdd
cmp dword [esi + 0x38], 0xb
jne 0x100ecdd5
mov eax, dword [esi + 0x24]
mov ecx, dword [0x101fc34c]
mov byte [eax + 0x192], 1
test ecx, ecx
je 0x100ecb1c
cmp byte [0x101fc342], 0
jne 0x100ecb27
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.Response_from_proxy_server_is_:
push ecx
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1019a4f8]
call edi
add esp, 8
lea ecx, [esi + 0xb0]
call fcn.100ebeb0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x100ecb79
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100eb360
jmp 0x100ecbcc
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x24]
test al, 0x10
je 0x100ecb90
mov dword [ecx + 0x1b4], 0x10
jmp 0x100ecbcc
test al, 2
je 0x100ecba0
mov dword [ecx + 0x1b4], 2
jmp 0x100ecbcc
test al, 4
je 0x100ecbb0
mov dword [ecx + 0x1b4], 4
jmp 0x100ecbcc
test al, 8
je 0x100ecbc0
mov dword [ecx + 0x1b4], 8
jmp 0x100ecbcc
movzx eax, al
and eax, 1
mov dword [ecx + 0x1b4], eax
cmp byte [esp + 0xd], 0
jne 0x100ecdd5
mov eax, dword [esi + 0x24]
cmp dword [eax + 0x1b4], 2
jne 0x100ecc08
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 2
push eax
push 0x4d
push dword [esi + 0xb0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x100ecc96
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ecc1b
cmp byte [0x101fc342], 0
jne 0x100ecc26
call fcn.100e0200
mov ecx, dword [0x101fc34c]
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 [0x1019a4f8]
call edi
add esp, 8
mov byte [esp + 0xd], 1
jmp 0x100ec8fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100eb360
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ecc69
cmp byte [0x101fc342], 0
jne 0x100ecc74
call fcn.100e0200
mov ecx, dword [0x101fc34c]
mov eax, dword [ecx]
push str.Failed_to_set_the_proxy_credentials
push 0x101ace8c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
jmp 0x100ecdd5
mov edi, dword [0x101fc34c]
test edi, edi
je 0x100ecca9
cmp byte [0x101fc342], 0
jne 0x100eccb4
call fcn.100e0200
mov edi, dword [0x101fc34c]
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 0x101ace8c
push edi
call dword [0x1019a4f8]
call esi
add esp, 0x10
jmp 0x100ecdd5
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ecd08
cmp byte [0x101fc342], 0
jne 0x100ecd13
call fcn.100e0200
mov ecx, dword [0x101fc34c]
push str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x100ecd84
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101ace8c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001e80
push 0
push 0x13
mov ecx, esi
call fcn.100eb1c0
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0xb0], 0
jmp 0x100ecdd5
mov ecx, dword [0x101fc34c]
test ecx, ecx
je 0x100ecd74
cmp byte [0x101fc342], 0
jne 0x100ecd7f
call fcn.100e0200
mov ecx, dword [0x101fc34c]
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 [0x1019a4f8]
call edi
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.100eb360
jmp 0x100ecdd5
sub esp, 0x18
xor eax, eax
mov ecx, esp
push eax
push 0x101ace8c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
call fcn.10001e80
push 0
push 0x13
mov ecx, esi
call fcn.100eb1c0
mov ecx, dword [esp + 0x24]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1015c7a5
mov esp, ebp
pop ebp
ret 8