Function at 0x410319
Capabilities:
Initialize winhttp library

Disassembly:
push 0x1c
mov eax, 0x4670b9
call fcn.0043d25b
mov edi, ecx
xor esi, esi
mov ebx, esi
cmp dword [edi + 0x54], esi
je 0x410354
cmp dword [edi + 0x64], ebx
je 0x410354
cmp dword [edi + 0x68], esi
je 0x410354
push dword [edi + 0x64]
push str.InitializeHTTPSession_:_Proxy_Server_Name_:__s
call fcn.004064a1
pop ecx
pop ecx
push esi
push dword [edi + 0x68]
push dword [edi + 0x64]
push 3
jmp 0x410359
push esi
push esi
push esi
push 1
push dword [0x4989ac]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi + 0x7c], eax
test eax, eax
je 0x41056e
push dword [edi + 0x28]
push str.Server_Name__s
call fcn.004064a1
push dword [edi + 0x2c]
push str.Server_Port__d
call fcn.004064a1
add esp, 0x10
mov dword [ebp - 0x18], 0x800
lea eax, [ebp - 0x18]
push 4
push eax
push 0x54
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x410480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InitializeHTTPOptions_:_WINHTTP_OPTION_SECURE_PROTOCOLS_:__Error_in_WinHttpSetOption______d
call fcn.004064a1
pop ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4851f8
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], esi
push str.InitializeHTTPSession
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.WIN_ELEC_INITIALIZE_HTTPSESSION
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 1
call fcn.00406f9d
add esp, 0x14
push ebx
call fcn.0040f9b2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401696
xor esi, esi
movzx eax, word [edi + 0x2c]
push esi
push eax
push dword [edi + 0x28]
push dword [edi + 0x7c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x41063f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InitializeHTTPSession_:__Error_in_WinHttpConnect______d
call fcn.004064a1
pop ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4852d0
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 6
push str.InitializeHTTPSession
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.WIN_ELEC_INITIALIZE_HTTPSESSION
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xb
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 7
call fcn.00406f9d
add esp, 0x14
push ebx
call fcn.0040f9b2
mov ecx, dword [ebp - 0x10]
jmp 0x410637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.InitializeHTTPSession_:__Error_in_WinHttpOpen______d
call fcn.004064a1
pop ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x48535c
call fcn.004042c5
push ecx
mov ecx, esp
mov dword [ebp - 4], 0xc
push str.InitializeHTTPSession
call fcn.004042c5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
mov edx, ebx
call fcn.004098c9
add esp, 4
mov dword [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x47ea50
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x479a58
call fcn.004042c5
push ecx
mov byte [ebp - 4], 0xf
mov esi, esp
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
push eax
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.WIN_ELEC_INITIALIZE_HTTPSESSION
call fcn.004042c5
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x11
push str.TRACK_FEATURE
call fcn.004042c5
mov byte [ebp - 4], 0xd
call fcn.00406f9d
add esp, 0x14
push ebx
call fcn.0040f9b2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov eax, ebx
call fcn.0043d229
ret