Function at 0x44cc70
Capabilities:
Initialize winhttp library
Prepare http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push esi
push edi
mov edi, ecx
mov esi, eax
xor eax, eax
push edi
push str.____CWinHttp::Initialize___pwszURL_s_n
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
call fcn.00401010
push edi
push str.CWinHttp::Initialize___pwszURL_s_n
push eax
call fcn.00448d80
add esp, 0x14
test esi, esi
jne 0x44ccb0
xor eax, eax
xor ecx, ecx
jmp 0x44cd4e
push 0x3c
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0046e670
add esp, 0xc
or eax, 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], 0x3c
mov ecx, 0x104
mov eax, esi
nop
cmp word [eax], 0
je 0x44cd38
add eax, 2
sub ecx, 1
jne 0x44cce0
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x44cd45
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpCrackUrl_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpCrackUrl_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
test ecx, ecx
je 0x44ccee
mov eax, 0x104
sub eax, ecx
jmp 0x44ccf0
mov ecx, dword [esp + 0x2c]
mov eax, 3
push 0
push 0
push ecx
push eax
push str.PC_Agent
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
mov dword [ebx], eax
jne 0x44cd9a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpOpen_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpOpen_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x1d4c0
push 0x1d4c0
push 0x1d4c0
push 0x1d4c0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x44cdee
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._WinHttpSetTimeouts_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpSetTimeouts_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov eax, 2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x3c
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0046e670
or eax, 0xffffffff
add esp, 0xc
test edi, edi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], eax
je 0x44ce33
mov ecx, 0x104
mov eax, edi
cmp word [eax], 0
je 0x44cee6
add eax, 2
sub ecx, 1
jne 0x44ce21
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x44cd03
mov edx, dword [esp + 0x30]
lea eax, [edx + edx + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
jne 0x44ce9e
call esi
push eax
push str._GlobalAllocPtr_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.GlobalAllocPtr_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov dword [esp + 0xc], 2
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
add edx, 1
push edx
push edi
call fcn.00449420
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx]
push 0
push eax
push edi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
mov dword [ebx + 4], eax
jne 0x44cefa
call esi
push eax
push str._WinHttpConnect_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpConnect_Error___d__n
jmp 0x44cfa8
test ecx, ecx
je 0x44ce33
mov eax, 0x104
sub eax, ecx
jmp 0x44ce35
movzx edx, word [esp + 0x34]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str.____WinHttpConnect_OK_lpszHostName__s__nPort__d__n
call fcn.00401010
movzx ecx, word [esp + 0x40]
mov edx, dword [esp + 0x38]
add esp, 0xc
push ecx
push edx
push str.WinHttpConnect_OK_lpszHostName__s__nPort__d__n
push 0
call fcn.00448d80
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 4]
xor eax, eax
cmp dword [esp + 0x28], 2
setne al
sub eax, 1
and eax, 0x800000
push eax
mov eax, dword [esp + 0x4c]
push 0
push 0
push str.HTTP_1.1
push eax
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
test eax, eax
mov dword [ebx + 8], eax
jne 0x44cf7c
call esi
push eax
push str._WinHttpOpenRequest_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpOpenRequest_Error___d__n
jmp 0x44cfa8
push 0
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_unknown_r_n
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x44cfbf
call esi
push eax
push str._WinHttpAddRequestHeaders_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpAddRequestHeaders_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov dword [esp + 0xc], 2
jmp 0x44d14a
mov ecx, dword [ebx + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x18]
push eax
push 0x58
push ecx
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x44d00f
call esi
push eax
push str._WinHttpSetOption_Error___d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.WinHttpSetOption_Error___d__n
push 2
call fcn.00448d80
add esp, 0xc
mov dword [esp + 0xc], 2
jmp 0x44d146
mov eax, dword [ebx + 8]
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1f
push eax
mov dword [esp + 0x28], 0x1100
call edi
test eax, eax
je 0x44cfe0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x44d0af
lea esi, [ebx + 0x14]
mov dword [esi], 0
mov ecx, SysReAllocString
mov eax, edi
xor edx, edx
cmp word [eax], dx
je 0x44d056
add eax, 2
sub ecx, 1
jne 0x44d047
jmp 0x44d05a
test ecx, ecx
jne 0x44d05f
mov edx, 0x80070057
test esi, esi
je 0x44d078
test edx, edx
jl 0x44d072
mov eax, SysReAllocString
sub eax, ecx
mov dword [esi], eax
jmp 0x44d078
mov dword [esi], 0
test edx, edx
jge 0x44d086
test esi, esi
je 0x44d086
mov dword [esi], 0
mov eax, dword [esi]
lea eax, [eax + eax + 2]
push eax
push 0x42
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x44d0af
mov ecx, dword [esi]
push edi
push ecx
push eax
call fcn.00449420
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x44d139
lea esi, [ebx + 0x18]
mov dword [esi], 0
mov ecx, SysReAllocString
mov eax, edi
xor edx, edx
lea esp, [esp]
cmp word [eax], 0
je 0x44d0e0
add eax, 2
sub ecx, 1
jne 0x44d0d0
jmp 0x44d0e4
test ecx, ecx
jne 0x44d0e9
mov edx, 0x80070057
test esi, esi
je 0x44d102
test edx, edx
jl 0x44d0fc
mov eax, SysReAllocString
sub eax, ecx
mov dword [esi], eax
jmp 0x44d102
mov dword [esi], 0
test edx, edx
jge 0x44d110
test esi, esi
je 0x44d110
mov dword [esi], 0
mov eax, dword [esi]
lea eax, [eax + eax + 2]
push eax
push 0x42
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [ebx + 0x10], eax
je 0x44d139
mov ecx, dword [esi]
push edi
push ecx
push eax
call fcn.00449420
cmp byte [ebp + 0x14], 0
je 0x44d146
mov eax, ebx
call fcn.0044d840
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44d168
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10