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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x419c72
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 4]
call fcn.004163c8
mov esi, dword [ebx + 4]
mov eax, dword [esi + 8]
mov edx, 0x419c8c
call fcn.0040344c
je 0x4199f6
lea eax, [esi + 8]
mov edx, 0x419c9c
call fcn.00403144
mov esi, 1
xor edi, edi
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [ebx + 0xce], 0
jne 0x419a35
cmp dword [ebx + 0x24], 0
je 0x419a37
mov esi, 3
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x24]
call fcn.004037f0
mov eax, dword [ebp - 8]
call fcn.00403800
mov edi, eax
mov eax, 0x419ca4
mov dword [ebp - 4], eax
jmp 0x419a37
xor esi, esi
push 0
mov eax, dword [ebp - 4]
push eax
push edi
push esi
lea eax, [ebp - 8]
mov edx, dword [ebx + 0xa8]
call fcn.004037f0
mov eax, dword [ebp - 8]
call fcn.00403800
push eax
call sub.winhttp.dll_WinHttpOpen
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x48], 0
jne 0x419a70
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x419c4f
mov eax, dword [ebx + 0xc0]
push eax
mov eax, dword [ebx + 0xc8]
push eax
mov eax, dword [ebx + 0xb8]
push eax
push 0
mov eax, dword [ebx + 0x48]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp byte [ebx + 0xcd], 0
je 0x419aa8
xor ecx, ecx
mov edx, 0x44
mov eax, dword [ebx + 0x48]
call fcn.004189d0
cmp byte [ebx + 0xcc], 0
je 0x419ac3
mov ecx, 0xaa0
mov edx, 0x54
mov eax, dword [ebx + 0x48]
call fcn.004189d0
mov esi, dword [ebx + 4]
cmp dword [esi + 0x10], 0
jne 0x419ae9
mov eax, dword [esi + 8]
mov edx, 0x419c8c
call fcn.0040344c
jne 0x419ae2
mov esi, 0x1bb
jmp 0x419af6
mov esi, 0x50
jmp 0x419af6
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.00406b28
mov esi, eax
push 0
push esi
lea eax, [ebp - 8]
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0x18]
call fcn.004037f0
mov eax, dword [ebp - 8]
call fcn.00403800
push eax
mov eax, dword [ebx + 0x48]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0x4c], edi
test edi, edi
jne 0x419b2e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x419c4f
mov esi, pe_nt_image_headers32
mov edi, dword [ebx + 4]
mov eax, dword [edi + 8]
mov edx, 0x419c8c
call fcn.0040344c
jne 0x419b4b
or esi, 0x800000
push esi
push 0
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x28]
call fcn.004037f0
mov eax, dword [ebp - 8]
push eax
push 0x419cb4
lea ecx, [ebp - 0x10]
mov dl, byte [0x419cc8]
mov eax, edi
call fcn.004166c8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004037f0
mov eax, dword [ebp - 0xc]
call fcn.00403800
push eax
mov eax, dword [ebx + 0x1c]
call fcn.00403800
push eax
mov eax, dword [ebx + 0x4c]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x50], 0
jne 0x419bad
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
jmp 0x419c4f
push 0
push 0x40ff
mov eax, 0x4189e4
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
cmp byte [ebx + 0xb5], 0
jne 0x419bde
mov ecx, 2
mov edx, 0x3f
mov eax, dword [ebx + 0x50]
call fcn.004189d0
xor eax, eax
mov al, byte [ebx + 0xcf]
mov esi, eax
shl esi, 0xc
xor eax, eax
mov al, byte [ebx + 0xd0]
shl eax, 0xd
or esi, eax
xor eax, eax
mov al, byte [ebx + 0xd1]
shl eax, 8
or esi, eax
xor eax, eax
mov al, byte [ebx + 0xd3]
shl eax, 9
or esi, eax
xor eax, eax
mov al, byte [ebx + 0xd2]
shl eax, 0x10
or esi, eax
test esi, esi
je 0x419c32
mov ecx, esi
mov edx, 0x1f
mov eax, dword [ebx + 0x50]
call fcn.004189d0
cmp byte [ebx + 0xbc], 0
je 0x419c4d
mov ecx, 3
mov edx, 0x76
mov eax, dword [ebx + 0x50]
call fcn.004189d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c79
lea eax, [ebp - 0x10]
call fcn.004030f0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403700
ret