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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de48a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x66e8b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0xc
push 0x18
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.0059e3c0
add esp, 0xc
push 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.0059e3c0
add esp, 0xc
push 0
push 0
push 0
push 1
push 0x5f9aa8
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x491949
jmp 0x491a96
push 0
mov edx, dword [ebp - 0x6c]
movzx eax, word [edx + 0x220]
push eax
mov ecx, dword [ebp - 0x6c]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x491975
jmp 0x491a96
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x234]
push ecx
push 0x5f9ac0
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4919a4
jmp 0x491a96
mov dword [ebp - 0x40], 0x20001
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x6c]
add edx, 0x244
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x491a96
cmp dword [ebp - 0x20], 0
jne 0x4919e8
jmp 0x491a96
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x64], esp
mov edx, dword [ebp - 0x20]
push edx
call fcn.00492400
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.004917e0
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x60], 0
jmp 0x491a24
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x5c]
call fcn.00492810
cmp dword [ebp - 0x60], eax
jae 0x491a87
mov edx, dword [ebp - 0x60]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00455380
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x68], esp
push eax
call fcn.00492440
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x6c]
call fcn.00492090
mov byte [ebp - 0x79], al
movzx eax, byte [ebp - 0x79]
test eax, eax
je 0x491a85
mov ecx, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
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 0x491a85
jmp 0x491a87
jmp 0x491a1b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00492620
cmp dword [ebp - 0x20], 0
je 0x491aa6
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x1c], 0
je 0x491ab6
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x14], 0
je 0x491ac6
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x44], 0
je 0x491ad6
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x28], 0
je 0x491ae6
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4