Function at 0x42747c
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Set http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x20], ecx
push edi
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], edi
cmp dword [ebp + 8], ecx
jne 0x4274bf
mov ecx, 0x80070057
mov ebx, ecx
jmp 0x42750b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4274b6
cmp dword [ebp + 0x10], esi
je 0x4274b6
lea edx, [ebp - 0x18]
call fcn.0042024d
mov ebx, eax
test ebx, ebx
js 0x427509
mov eax, dword [ebp - 0x24]
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push dword [eax + 0x28]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x4275a3
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0042001a
mov ebx, eax
mov ecx, ebx
call fcn.0041b100
mov ecx, ebx
call fcn.0041b049
test edi, edi
je 0x427522
mov ecx, edi
call fcn.004202b8
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x42752e
call fcn.004202b8
test esi, esi
je 0x427539
mov ecx, esi
call fcn.004202b8
push 0
lea ecx, [ebp - 0x38]
call fcn.00425e4e
lea ecx, [ebp - 0x30]
call fcn.0041debe
mov eax, dword [ebp - 4]
test eax, eax
je 0x427562
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x42756e
call fcn.004202b8
mov eax, dword [ebp - 8]
test eax, eax
je 0x42757c
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42758a
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x427598
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x50
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4275bf
mov dword [ebp - 0x1c], ebx
jmp 0x4274fa
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push 0x40b5d4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4275e1
mov dword [ebp - 8], ebx
jmp 0x4274fa
lea eax, [ebp - 0x10]
push eax
call fcn.00427d10
mov ebx, eax
test ebx, ebx
jns 0x4275ff
mov ecx, ebx
call fcn.0041b100
mov esi, dword [ebp - 0x10]
jmp 0x427510
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x427649
push esi
lea eax, [ebp - 0xc]
push 0x40b5dc
push eax
call fcn.00428877
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x42762d
mov ecx, ebx
call fcn.0041b100
mov edi, dword [ebp - 0xc]
jmp 0x427510
mov edi, dword [ebp - 0xc]
push 0x20000000
push 0xffffffffffffffff
push edi
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4274fa
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x427698
test edi, edi
je 0x427663
mov ecx, edi
call fcn.004202b8
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [ebp - 0xc]
push 0x40b600
push eax
call fcn.00428877
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x42761e
mov edi, dword [ebp - 0xc]
push 0x20000000
push 0xffffffffffffffff
push edi
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x4274fa
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4274fa
push 0
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4274fa
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4276ec
and dword [ebp - 4], eax
mov ebx, 0x8007000e
jmp 0x427509
and dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0x4000
mov word [eax], cx
push ecx
lea ecx, [ebp - 0x38]
call fcn.00425e4e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
push 0
push 0x2b
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x427808
push 4
push 0x40b624
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x427781
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x38]
push eax
push 0x3b
pop edx
call fcn.00427825
mov ebx, eax
test ebx, ebx
js 0x427509
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
lea ecx, [ecx + 8]
call fcn.0042024d
mov ebx, eax
test ebx, ebx
js 0x427509
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x427781
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x14], 0
mov dword [ecx], eax
push 4
push 0x40b630
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x4277f8
push eax
lea ecx, [ebp - 0x38]
call fcn.00425e4e
test esi, esi
je 0x4277b1
mov ecx, esi
call fcn.004202b8
xor esi, esi
mov dword [ebp - 0x10], esi
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x38]
push eax
push 0x3b
pop edx
call fcn.00427825
mov ebx, eax
test ebx, ebx
js 0x427509
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
lea ecx, [ecx + 8]
call fcn.0042024d
mov ebx, eax
test ebx, ebx
js 0x4275f0
mov esi, dword [ebp - 0x10]
push esi
call fcn.00427c97
mov ebx, eax
test ebx, ebx
js 0x427509
test ebx, ebx
js 0x427510
mov eax, dword [ebp - 4]
jmp 0x4276f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x4274fa
xor ebx, ebx
jmp 0x427510