Function at 0x4af750
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5888ec
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5cca0c]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
push 0xfe
lea edx, [esp + 0x96]
push ebx
push edx
mov dword [esp + 0x1a8], 1
mov dword [esp + 0x24], ebx
mov word [esp + 0x9c], bx
call fcn.00552500
add esp, 0xc
lea eax, [esp + 0x1a8]
lea esi, [esp + 0x58]
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x34], str.Accept:_
mov dword [esp + 0x38], ebx
call fcn.004ad640
lea eax, [esp + 0x1c4]
lea esi, [esp + 0x74]
mov byte [esp + 0x19c], 2
call fcn.004ad640
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x1b0], 3
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebp, eax
cmp ebp, ebx
jne 0x4af8ce
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x4af83f
mov eax, dword [esp + 0x78]
push eax
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x70], edi
mov esi, 7
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x4af86a
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0055215c
add esp, 4
mov dword [esp + 0x70], esi
mov esi, 0x10
cmp dword [esp + 0x1c0], esi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x4af895
mov edx, dword [esp + 0x1ac]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x1dc], esi
mov dword [esp + 0x1c0], 0xf
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
jb 0x4af8c7
mov eax, dword [esp + 0x1c8]
push eax
call fcn.0055215c
add esp, 4
xor eax, eax
jmp 0x4afc70
push edi
push edi
push edi
push edi
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, dword [esp + 0x5c]
mov esi, 8
cmp dword [esp + 0x70], esi
jae 0x4af8ec
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x1e0]
push ebx
push ecx
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x4af9c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [esp + 0x8c], esi
jb 0x4af92e
mov edx, dword [esp + 0x78]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x70], 8
mov esi, 7
mov word [esp + 0x78], bx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], esi
jb 0x4af95a
mov eax, dword [esp + 0x5c]
push eax
call fcn.0055215c
add esp, 4
mov dword [esp + 0x70], esi
mov esi, 0x10
cmp dword [esp + 0x1c0], esi
mov word [esp + 0x5c], bx
mov dword [esp + 0x6c], ebx
jb 0x4af985
mov ecx, dword [esp + 0x1ac]
push ecx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x1dc], esi
mov dword [esp + 0x1c0], 0xf
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x1ac], bl
jb 0x4af8c7
mov edx, dword [esp + 0x1c8]
push edx
call fcn.0055215c
add esp, 4
xor eax, eax
jmp 0x4afc70
cmp dword [esp + 0x8c], esi
mov eax, dword [esp + 0x78]
jae 0x4af9d3
lea eax, [esp + 0x78]
push 0x100
lea ecx, [esp + 0x38]
push ecx
push ebx
push str.HTTP_1.1
push eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
cmp esi, ebx
jne 0x4afa28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
push ebp
call esi
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x4afa1f
mov edx, dword [esp + 0x78]
push edx
call fcn.0055215c
add esp, 4
cmp dword [esp + 0x70], edi
jmp 0x4af933
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4afa7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
push ebp
call esi
lea ecx, [esp + 0x74]
call fcn.00407560
lea ecx, [esp + 0x58]
call fcn.00407560
lea ecx, [esp + 0x1a8]
call fcn.004074a0
lea ecx, [esp + 0x1c4]
call fcn.004074a0
xor eax, eax
jmp 0x4afc70
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4afa39
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push ecx
push ebx
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4afc2b
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
xor edi, edi
call fcn.00554e93
add esp, 4
push 0x59648b
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], eax
call fcn.0040dcb0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x1a0], 4
call fcn.004a5eb0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x19c], 3
call fcn.004074a0
cmp dword [esp + 0x1c], ebx
jbe 0x4afc1c
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4afc1c
lea esp, [esp]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jbe 0x4afc1c
lea edx, [esp + 0x17]
push edx
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x1f], bl
call fcn.004ae680
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1a8], 5
call fcn.004a2370
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4afc0d
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4afc0d
push eax
push ebx
lea ecx, [esp + 0x44]
call fcn.004a2370
mov ecx, dword [esp + 0x2c]
push eax
add ecx, 8
call fcn.004af640
mov ecx, dword [esp + 0x24]
add edi, dword [esp + 0x18]
cmp ecx, ebx
je 0x4afbd3
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
test al, al
jne 0x4afc13
cmp dword [esp + 0x1dc], 0x10
mov eax, dword [esp + 0x1c8]
jae 0x4afbbd
lea eax, [esp + 0x1c8]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push eax
call edx
cmp edi, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
jae 0x4afc17
mov byte [esp + 0x19c], 3
call fcn.004a5e80
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4afb20
xor ebx, ebx
cmp edi, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
sete bl
jmp 0x4afc2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x3c]
call fcn.004a5e80
xor ebx, ebx
cmp edi, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
sete bl
jmp 0x4afc2f
mov ebx, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push edi
call esi
push ebp
call esi
lea ecx, [esp + 0x74]
call fcn.00407560
lea ecx, [esp + 0x58]
call fcn.00407560
lea ecx, [esp + 0x1a8]
call fcn.004074a0
lea ecx, [esp + 0x1c4]
call fcn.004074a0
mov eax, ebx
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00552d63
add esp, 0x18c
ret