Function at 0x40f7d0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475468
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x497644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [edi + 0x14], ebx
jb 0x40f816
mov eax, dword [edi + 4]
jmp 0x40f819
lea eax, [edi + 4]
mov byte [eax], bl
jmp 0x40f820
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x28]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40f972
mov ecx, dword [ebp - 0x38]
inc ecx
push ecx
call fcn.00439f40
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40f986
mov edx, dword [ebp - 0x38]
inc edx
push edx
push ebx
push esi
call fcn.00445dc0
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edx + 0x28]
push ecx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40f9a5
mov dword [ebp - 0x34], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.0043c350
add esp, 4
cmp eax, ebx
je 0x40f9b3
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov dword [edx], ecx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
push eax
push esi
call fcn.00401bb0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call fcn.00401d60
mov eax, dword [ebp - 0x30]
mov ecx, 0x10
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x40f8e8
lea eax, [ebp - 0x30]
mov byte [eax], bl
cmp dword [ebp - 0x1c], ecx
jb 0x40f8fb
mov edx, dword [ebp - 0x30]
push edx
call fcn.0043c1d0
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], ebx
je 0x40f946
push 3
lea ecx, [ebp - 0x40]
call fcn.00439ed0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], ebx
je 0x40f938
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x40f926
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov dword [edx + 4], ebx
call fcn.00439f10
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043c1d0
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.0043c1b0
add esp, 8
cmp dword [ebp - 0x38], ebx
ja 0x40f820
mov eax, 1
jmp 0x40f988
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpQueryDataAvailable._n
call fcn.0040f1a0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043bb50
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpReadData._n
jmp 0x40f97e
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
call fcn.0043bb90
push 0x491a28
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call fcn.004459f0
int3