Function at 0x4556f0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call fcn.00401670
push edi
push edi
push edi
push edi
push str.HREQUEST
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x1c], ebx
je 0x455970
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0x10]
shl ecx, 1
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455760
sub eax, edi
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.00463ade
mov ecx, dword [esi + 0x10]
add esp, 0xc
push 0
push 0x50
push ecx
push ebx
mov edi, eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x455966
lea ecx, [edi + edi]
mov edi, dword [esi + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4557b3
sub eax, edi
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
call fcn.00463ade
mov edi, eax
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
mov eax, 0x4963f0
jne 0x4557dd
mov eax, 0x4963e8
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
je 0x45595c
mov eax, dword [ebp + 8]
test eax, eax
je 0x455895
lea ecx, [edi + edi]
mov edi, dword [esi + 0x10]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, str.Content_type:_application_x_www_form_urlencoded_r_n
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x455824
sub eax, edi
push eax
mov eax, dword [esi + 0x10]
push str.Content_type:_application_x_www_form_urlencoded_r_n
push eax
call fcn.00463ade
mov ecx, dword [esi + 0x10]
add esp, 0xc
push 0x20000000
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esi + 0x10]
push eax
push edx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov edi, dword [ebp + 0x14]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push 0
push ecx
push ecx
push eax
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x455955
mov eax, dword [edi]
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 0
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
jmp 0x4558a8
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edi, edi
cmp eax, edi
je 0x455955
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, edi
je 0x455955
mov dword [ebp - 0x14], 1
lea esp, [esp]
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp + 8], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x45594c
mov ecx, dword [ebp + 8]
cmp dword [esi + 8], ecx
jae 0x45591e
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4558fa
push eax
call fcn.00477b19
add esp, 4
mov ecx, dword [ebp + 8]
inc ecx
push ecx
call fcn.00477b14
add esp, 4
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x455918
xor ecx, ecx
mov dword [ebp + 8], ecx
mov dword [esi + 8], edi
jmp 0x45591e
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x45594c
lea edx, [ebp + 0xc]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x45594c
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov byte [ecx + eax], 0
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp + 0x18]
push edx
call fcn.00402040
cmp dword [ebp + 8], edi
ja 0x4558d0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14