Function at 0x491b00
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de4c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x66e8b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0xc
push 0x18
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0059e3c0
add esp, 0xc
push 0xc
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.0059e3c0
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004924b0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 1
push 0x5f9ac8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x491b9e
jmp 0x491df2
push 0
mov edx, dword [ebp - 0xb4]
movzx eax, word [edx + 0x220]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x491bd0
jmp 0x491df2
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 0x234]
push ecx
push 0x5f9ae0
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x491c02
jmp 0x491df2
mov dword [ebp - 0x5c], 2
push 0x800
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpDetectAutoProxyConfigUrl]
test eax, eax
je 0x491c99
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x88], esp
mov eax, dword [ebp - 0x14]
push eax
call fcn.00492400
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.004917e0
mov dword [ebp - 0xbc], eax
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x44]
call fcn.00492680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00492620
jmp 0x491cb4
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.00491610
movzx edx, al
test edx, edx
jne 0x491cb4
jmp 0x491df2
mov dword [ebp - 0x64], 0
jmp 0x491cc6
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x44]
call fcn.00492810
cmp dword [ebp - 0x64], eax
jae 0x491df2
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00455380
mov ecx, eax
call fcn.0040f680
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xb4]
add ecx, 0x244
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x491ded
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov eax, dword [ebp - 0x24]
push eax
call fcn.00492400
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0xb4]
call fcn.004917e0
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], 0
jmp 0x491d60
mov edx, dword [ebp - 0x80]
add edx, 1
mov dword [ebp - 0x80], edx
lea ecx, [ebp - 0x7c]
call fcn.00492810
cmp dword [ebp - 0x80], eax
jae 0x491de1
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00455380
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xa8], esp
push eax
call fcn.00492440
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xb4]
call fcn.00492090
mov byte [ebp - 0xcd], al
movzx ecx, byte [ebp - 0xcd]
test ecx, ecx
je 0x491ddc
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x7c]
call fcn.00455380
push eax
mov ecx, dword [ebp + 8]
call fcn.00492830
mov ecx, dword [ebp + 8]
call fcn.00492810
cmp eax, 3
jb 0x491ddc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00492620
jmp 0x491df2
jmp 0x491d57
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00492620
jmp 0x491cbd
cmp dword [ebp - 0x24], 0
je 0x491e02
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x20], 0
je 0x491e12
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x18], 0
je 0x491e22
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x60], 0
je 0x491e32
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x491e42
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x14], 0
je 0x491e60
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0xac]
push eax
call fcn.005a03f1
add esp, 4
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xad], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00492620
mov al, byte [ebp - 0xad]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4