Function at 0x56aa80
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
call fcn.0056a920
test al, al
jne 0x56aaa5
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ax, 1
lock xadd word [0x633c54], ax
inc ax
push 0x1000
push 4
push dword [0x6337d4]
movzx esi, ax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 1
push esi
push dword [ebp + 0x10]
mov esi, dword [0x635b50]
mov ebx, eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
push ebx
mov ecx, esi
call dword [0x5a38e4]
call esi
test eax, eax
setne cl
test eax, eax
jne 0x56ab50
push ebx
push eax
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword ds:[ebp - 4]
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [0x635b50]
mov ebx, eax
push 1
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push ebx
call dword [0x5a38e4]
call esi
test eax, eax
setne cl
test cl, cl
jne 0x56ab65
test ebx, ebx
je 0x56acbe
push ebx
jmp 0x56acb0
mov ecx, dword [ebp + 8]
call fcn.0056a740
test eax, eax
je 0x56aca8
push 0x800000
push 0x63171c
push 0
push 0
push str._dns_query
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
je 0x56aca8
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_application_dns_message
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [0x62dbb0], 0x3e
ja 0x56abd0
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1000
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword ds:[ebp - 4]
push 0
push eax
push eax
push dword [ebp - 0xc]
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x56ac8e
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x56ac8e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call sym.SystemInformer.exe_PhHttpSocketReadDataToBuffer
test al, al
je 0x56ac8b
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
cmp esi, 0xffff
ja 0x56ac8b
mov edi, dword ds:[ebp - 8]
movzx eax, word [edi]
mov dh, al
mov dl, ah
movzx eax, word [edi + 4]
mov ch, al
mov word [edi], dx
mov cl, ah
movzx eax, word [edi + 6]
mov word [edi + 4], cx
mov ch, al
mov cl, ah
movzx eax, word [edi + 8]
mov word [edi + 6], cx
mov ch, al
mov cl, ah
movzx eax, word [edi + 0xa]
mov word [edi + 8], cx
mov ch, al
mov cl, ah
mov word [edi + 0xa], cx
cmp dx, word [ebp - 0x10]
jne 0x56ac8e
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [0x635b54]
mov ecx, esi
push edi
call dword [0x5a38e4]
call esi
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x18], ecx
jmp 0x56ac8e
mov edi, dword [ebp - 8]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x56aca8
push edi
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x56acbe
push eax
push 0
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc