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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481943
mov eax, dword fs:[0]
push eax
mov eax, 0x2498
call fcn.00459f60
mov eax, dword [0x4ac084]
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 dword [ebp - 0x2494], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2488]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x249c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2490], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x248c], eax
call fcn.004296d0
push 4
push dword [0x493e40]
mov eax, 0x50
mov dword [ebp - 0x38], 2
mov word [ebp - 0x3c], ax
mov eax, ecx
push 0x21
push eax
mov dword [ebp - 0x34], 4
call fcn.00461859
push eax
call fcn.004035e0
add esp, 0x14
lea ecx, [ebp - 0x2488]
call fcn.004296d0
push edi
call fcn.004290e0
test eax, eax
jne 0x44b5f7
mov eax, 0x80004005
jmp 0x44b76c
mov eax, dword [ebp - 0x2494]
push 0
push 0
push 0
push 1
push dword [eax + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x44b62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x44b76c
movzx eax, ax
or eax, 0x80070000
jmp 0x44b76c
push 0
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2446]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, dword [ebp - 0x2490]
mov dword [ecx], eax
test eax, eax
je 0x44b614
xor eax, eax
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x38], 3
mov ecx, 0x800000
cmove eax, ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x2498], eax
lea eax, [ebp - 0x2040]
push eax
call fcn.00403ac0
lea ecx, [ebp - 0x103e]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b684
sub ecx, edx
sar ecx, 1
je 0x44b6a4
lea eax, [ebp - 0x103e]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409600
push dword [ebp - 0x2498]
mov eax, dword [ebp - 0x2490]
push 0
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x249c]
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, eax
mov eax, dword [ebp - 0x248c]
mov dword [eax], ecx
test ecx, ecx
jne 0x44b710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44b6ea
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x44b70c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x44b76c
mov eax, dword [ebp - 0x2494]
mov edx, dword [eax + 8]
test edx, edx
je 0x44b72b
mov eax, dword [edx]
push edi
push dword [esi]
push ecx
mov ecx, edx
call dword [eax]
mov ebx, eax
jmp 0x44b748
mov dword [ebp - fcn.0044bb70], vtable.CAutoProxyInfo.0
push edi
mov byte [ebp - 4], 1
push dword [esi]
push ecx
lea ecx, [ebp - 0x248c]
call fcn.0044bb70
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44b76a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.00458d41
mov esp, ebp
pop ebp
ret 0x14